I would like to create a weekly report that lists the deleted files in a FreeNAS share. What would be the best way to do that? Run "diff" between the volume and a snapshot? Any suggestions?
LIST is a list of VFS operations that should be recorded if they succeed. Operations are specified using the names listed above. Operations can be unset by prefixing the names with "!".
Thanks again, I'm adding this parameter "full_audit:success = unlink" in the "Auxiliary Parameters" field but I'm still seeing all the operations in the log. Am I missing anything?
Thanks again, I'm adding this parameter "full_audit:success = unlink" in the "Auxiliary Parameters" field but I'm still seeing all the operations in the log. Am I missing anything?
full_audit:failure defaults to "ALL". This means that with your above setup, samba will log all failed VFS operations. Try adding something like full_audit:failure = unlink.
full_audit:failure defaults to "ALL". This means that with your above setup, samba will log all failed VFS operations. Try adding something like full_audit:failure = unlink.
Thanks anodos, that works!
What about the format of the entry in the log, is it possible to add the full path to the file that was deleted? Right now I'm seeing something like that:
Check out the "Variable Substitutions" section of the smb.conf manpage. For example, full_audit:prefix = "%u|%I|%P". I'm not sure if %P will give you what you want (it's the path to the root directory of the current service, i.e. share). Perhaps "%u|%I|%$(path)". I personally don't use full_audit and so I don't know the details of how to achieve this. :)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.