[Samba] Logging
Rowland Penny
rpenny at samba.org
Thu Mar 13 12:03:25 UTC 2025
On Thu, 13 Mar 2025 12:22:39 +0100 (CET)
Fabrizio Rompani via samba <samba at lists.samba.org> wrote:
> hi all .
> in a samba fileserver ( joined to a samba domain ) , I'd like to log
> in to a specific file , some operation with username and ip address.
> my conf file are below. I don't have the expected result : log is
> full of ( it seems to me ) debug info , and not all my requested info
> (eg ip address ) Any suggestion on how to properly setup logging?
> also : in the bolded line below : it seems to me it is impossible a
> user has opened and closed the file in the same exacly time : what
> that would mean?
First, can I suggest you open a terminal and type 'man smb.conf' then
read the output, particularly the part under 'log level', that will
explain how you can set up logging better.
Now coming to your smb.conf, you have this line in 'global':
vfs objects = acl_xattr
Then this one (again in global):
vfs objects = full_audit
The second one replaces the first one, it does not add to it.
Or to put it another way, you are not using ACLs
You then have this line in cestino.conf (which is added to your
'condivisioni' share):
vfs objects = recycle acl_xattr
This turns on 'recycle' and 'acl_xattr' and turns off 'full_audit', but
only for that share.
Rowland
More information about the samba
mailing list