i'm setting up a common public folder on a file server, but I seem to be getting some permission differently to what I expected.
The folder is /temp which is a separate drive. The fstab entry is:
/dev/hda2 /temp xfs defaults 1 2
root@halki:/# ls -l /
drwxrwsr--+ 9 root shares 4096 2010-11-24 17:52 temp/
.... (other results truncated)
and its extended ACLS are:
root@halki:/temp# getfacl /temp/
getfacl: Removing leading '/' from absolute path names
# file: temp/
# owner: root
# group: shares
The 'shares' group is the default write group in /temp (I preffered to use something other than the 'users' group which is default for every new user).
additionally, smb.conf (samba set to 'share' mode) exports this folder to the network as:
comment = Temporary file space
path = /temp
read only = no
public = yes
force group = shares
inherit permissions = yes
inherit acls = yes
So I would expect that when I create a new subfolder within /temp from over the network,
it would inherit the permissions from /temp directly or at least from its default ACLs entries.
in contrast to that I get
drwxrwsr-x+ 2 nobody shares 6 2010-11-24 18:24 test/
So the others get an execute permission too...
where does my train of thought fail me ?
thank you for your help!
EDIT: obviously I want the permissions to look like those of /temp folder. that is rwxrwxr--