Post by BartEven with: store dos attributes = Yes
hidden files were not working
I had to explicitly spec map hidden = yes
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[bvdata]"
Processing section "[cbm_data]"
Processing section "[samba-share]"
Loaded services file OK.
Invalid combination of parameters for service homes.
Map hidden can only work if create mask includes octal 01 (S_IXOTH).
Invalid combination of parameters for service printers.
Map hidden can only work if create mask includes octal 01 (S_IXOTH).
Invalid combination of parameters for service bvdata.
Map hidden can only work if create mask includes octal 01 (S_IXOTH).
Invalid combination of parameters for service cbm_data.
Map hidden can only work if create mask includes octal 01 (S_IXOTH).
Invalid combination of parameters for service samba-share.
Map hidden can only work if create mask includes octal 01 (S_IXOTH).
Server role: ROLE_STANDALONE
map to guest = Never
username map =
use mmap = Yes
os2 driver map =
username map script =
ldap idmap suffix =
homedir map = auto.home
afs username map =
idmap domains =
idmap backend =
idmap alloc backend =
idmap cache time = 900
idmap negative cache time = 120
idmap uid =
idmap gid =
acl map full control = Yes
map acl inherit = No
map archive = Yes
map hidden = Yes
map system = No
map readonly = yes
mangled map =
dmapi support = No
Can you help with these errors?
[samba-share]
path = /samba-share
guest ok = yes
writeable = yes
browseable = yes
; guest only = yes
force group = nobody
create mask = 0666
directory mask = 0777
; force create mode = 0666
; force directory mode = 0777
Hi Bart,
i probably was a bit unclear on irc regarding the meaning of
map archive = Yes
map hidden = Yes
map system = Yes
map readonly = Yes
All these smb.conf "map ..." entries are _always_ related to the
mapping of dos attributes to *nix file/dir permission bits
- see also http://oreilly.com/catalog/samba/chapter/book/ch05_03.html
Cause these mappings to file/dir permissions can have some ugly side-effects,
another approach can be used when *nix xattr are available and enabled:
ea support = yes
store dos attributes = Yes
Now samba will first try to write/read EAs to/from *nix xattr entries,
but as a _fallback_ the permission mapping will still be used, when
map archive = Yes
map hidden = Yes
map system = Yes
map readonly = Yes
is set. See also 'man smb.conf' for "store dos attributes" !
Also note, that the 'testparm' applet is a bit "vague" by still
displaying msgs like "Map hidden can only work if create mask
includes octal 01 (S_IXOTH)."
To avoid/disable this fallback one should use the following:
ea support = yes
store dos attributes = Yes
map archive = No
map hidden = No
map system = No
map readonly = No
Now all dos attributes are written to *nix xattr entries like
user.DOSATTRIB="0x20" - assuming the underlying fs supports xattr.
On the linux side one can use 'getfattr *' or more specific e.g.
linux300:/home/gk/cifstest # getfattr -d inode.c
# file: inode.c
user.DOSATTRIB="0x20"
Cheers, Günter
Note: When dos attributes are stored in *nix xattr, one might need
special copy and/or backup programs on the *nix side to not lose
the extended attributes!