Samba-audit in /var/lib/nethserver/home/*

NethServer Version: NethServer 7.9.2009 (all updated)
Module: nethserver-samba-audit

Well… is there a way to audit those? I mean i know, if only the guy accessing them is the one with a username that has access to it you could not have any problems, but there are some people that are saying files are “missing”, and i would love to have some proof over it! :stuck_out_tongue:

https://docs.nethserver.org/en/v7/shared_folder.html
Auditing…

Yes, i am aware, by default shared folders are in /var/lib/nethserver/ibay/ and not /var/lib/nethserver/home

I was thinking of making audit for home files.

Create a custom template

 mkdir -p /etc/e-smith/templates-custom/etc/samba/smb.conf
 cd /etc/e-smith/templates-custom/etc/samba/smb.conf
 vi 71homeaudit

Insert this in 71homeaudit

; 71homeaudit (custom)
[homes]
vfs objects = full_audit

then give these commands

expand-template /etc/samba/smb.conf
service smb restart
4 Likes

Awesome! Thanks a bunch!