Hello,
i try to bring with Unraid 7.0 the vfs objects full_audit to work. But didn’t have any success. May be some of you have experiance with this and could help me.
My Samba extra settings which I try to bring to work:
[global]
log level = 1 auth_audit:3 full_audit:5
vfs objects = full_audit
full_audit:prefix = %u|%I|%S|%P|%f
full_audit:priority = NOTICE
full_audit:success = openat mkdirat renameat unlinkat pwrite
full_audit:failure = openat
In the logfile I get:
[2025/02/21 08:59:35.181325, 1] ../../lib/param/loadparm.c:1912(lpcfg_do_global_parameter)
lpcfg_do_global_parameter: WARNING: The "null passwords" option is deprecated
[2025/02/21 08:59:35.181340, 1] ../../lib/param/loadparm.c:1912(lpcfg_do_global_parameter)
lpcfg_do_global_parameter: WARNING: The "syslog" option is deprecated
[2025/02/21 08:59:35.247047, 0] ../../source3/modules/vfs_full_audit.c:560(init_bitmap)
init_bitmap: Could not find opname mkdir
[2025/02/21 08:59:35.247069, 0] ../../source3/modules/vfs_full_audit.c:749(smb_full_audit_connect)
smb_full_audit_connect: Invalid success operations list. Failing connect
My guess is that the hook for the extraparameter is at the wrong space. In my case it should be afterwards.
# hook for user-defined samba config
include = /boot/config/smb-extra.conf
[global]
# hook for unassigned devices shares
include = /etc/samba/smb-unassigned.conf
# auto-configured shares
include = /etc/samba/smb-shares.conf
I guess the global is correct, but the local setting is overriting it:
root@XXXXXXXXXX:/etc/samba# testparm -s | grep -i vfs
Load smb config files from /etc/samba/smb.conf
lpcfg_do_global_parameter: WARNING: The "null passwords" option is deprecated
lpcfg_do_global_parameter: WARNING: The "syslog" option is deprecated
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)
Server role: ROLE_STANDALONE
vfs objects = full_audit
vfs objects = recycle extd_audit
vfs objects = recycle extd_audit
vfs objects = recycle extd_audit
vfs objects = recycle extd_audit
vfs objects = recycle extd_audit
vfs objects = recycle extd_audit
vfs objects = recycle extd_audit
is there a way to overrite the auto-generated share settings?
mfg