Bug 9956 - Additional "vfs objects" lines in Samba config invalidates previous lines instead of adding to
Additional "vfs objects" lines in Samba config invalidates previous lines ins...
Product: Samba 3.6
Classification: Unclassified
Component: Config Files
All All
: P5 minor
: ---
Assigned To: Karolin Seeger
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2013-06-17 21:59 UTC by Matthew Trent
Modified: 2013-06-27 07:18 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Trent 2013-06-17 21:59:10 UTC
I was experimenting with Samba auditing on my FreeNAS install and added a "vfs object = full_audit" line to a share via FreeNAS's auxiliary options GUI. I found the auditing working, but noticed my share's permissions all whacked out.

After looking at smb.conf, I guessed my extra "vfs objects" line was invalidating the existing default FreeNAS "vfs objects = zfsacl" line, and without zfsacl, permissions were affected. To test, I changed my line to "vfs objects = zfsacl full_audit", and everything worked as expected again.

Obviously a 3rd party product like FreeNAS could/should account for this when building the smb.conf, but given the name "stackable VFS modules", and the lack of any warning about multiple "vfs objects" lines invalidating previous ones, the current behavior could be confusing even for manual smb.conf configuration.
Comment 1 Karolin Seeger 2013-06-27 07:18:38 UTC
I think this is by design.
When using the the same parameter several times, the last entry is used.
This is very useful in some scenarios.

Closing out bug report.