Bug 10641 - Behaviour of option "vfs objects" problematic
Summary: Behaviour of option "vfs objects" problematic
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
: 9956 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-05-30 09:06 UTC by Klaus Hartnegg
Modified: 2021-08-11 20:21 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Hartnegg 2014-05-30 09:06:52 UTC
Please let samba and smbd issue a warning message when a new declaration of "vfs objects" does not contain all objects from the previous definition.

The current behaviour of the option "vfs objects" is problematic in at least two cases:

- when "vfs objects" is specified both in [global] and in a share declaration, then the declaration in the share wipes out the objects that are declared in the default. As result only the ones declared in the share are active, the previous definition of additional objects is ignored.

- when samba runs as AD-DC, then "vfs objects" is secretly predefined, even before smb.conf is read. Any use in smb.conf will overwrite the already listed objects, breaking some important functionality. Users must know that and which ones are predefined, and add these objects to their list.

This behaviour is a pitfall that has already caused many problems, and is guaranteed to cause more problems in the future. Such pitfalls should be removed.

For cases when removing objects is required for single shares, demand that the ones to be removed are listed with a minus-sign like
vfs objects = acl_xattr -recycle
This would allow to remove recycle form the list for a single share, without issuing a warning message. It would make sure that people know whats going on, that others were defined earlier, and they really want to remove them.

Maybe also remove the alias "vfs object", because "vfs objects" is more compatible with the notion that one always has to specify a list all of them.
Comment 1 Björn Jacke 2021-08-11 20:19:41 UTC
*** Bug 9956 has been marked as a duplicate of this bug. ***