{"id":952,"date":"2012-04-23T10:37:00","date_gmt":"2012-04-23T15:37:00","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=952"},"modified":"2012-04-23T10:37:00","modified_gmt":"2012-04-23T15:37:00","slug":"samba-logging-on-ubuntu","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2012\/04\/samba-logging-on-ubuntu\/","title":{"rendered":"Samba Logging on Ubuntu"},"content":{"rendered":"<p>Should work with debian also.<br \/>\nUbuntu 10.04.4 LTS x32 system fully patched with LAMP, SSH, and Samba already installed<br \/>\n* Installed samba via the webmin interface<\/p>\n<p>Install the local syslog server<br \/>\n<code>apt-get install sysklogd<\/code><\/p>\n<p>Edit the syslog server<br \/>\n<code>nano \/etc\/syslog.conf<\/code><\/p>\n<blockquote><p>local7.*      \/var\/log\/samba\/log.audit<\/p><\/blockquote>\n<p>Save and exit<br \/>\n<code>touch \/var\/log\/samba\/log.audit<\/code><br \/>\n<code>\/etc\/init.d\/sysklogd restart<\/code><\/p>\n<p>Edit Samba to enable the logging<br \/>\n<code>nano \/etc\/samba\/smb.conf<\/code><\/p>\n<blockquote><p>vfs objects = full_audit<br \/>\nfull_audit:prefix = %u|%I|%m|%S<br \/>\nfull_audit:success = mkdir rename unlink rmdir pwrite<br \/>\nfull_audit:failure = none<br \/>\nfull_audit:facility = LOCAL7<br \/>\nfull_audit:priority = NOTICE<\/p><\/blockquote>\n<p>Save and Exit<br \/>\n<code>\/etc\/init.d\/smbd restart<\/code><\/p>\n<p>You should now notice the file attempts at \/var\/log\/samba\/log.audit<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Should work with debian also. Ubuntu 10.04.4 LTS x32 system fully patched with LAMP, SSH, and Samba already installed * Installed samba via the webmin interface Install the local syslog server apt-get install sysklogd Edit the syslog server nano \/etc\/syslog.conf local7.* \/var\/log\/samba\/log.audit Save and exit touch \/var\/log\/samba\/log.audit \/etc\/init.d\/sysklogd restart Edit Samba to enable the logging &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2012\/04\/samba-logging-on-ubuntu\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Samba Logging on Ubuntu<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-952","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=952"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/952\/revisions"}],"predecessor-version":[{"id":953,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/952\/revisions\/953"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}