Hello everyone,
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:
Quote:
/dev/hda2 /temp xfs defaults 1 2
|
with permissions:
Quote:
root@halki:/# ls -l /
drwxrwsr--+ 9 root shares 4096 2010-11-24 17:52 temp/
.... (other results truncated)
|
and its extended ACLS are:
Quote:
root@halki:/temp# getfacl /temp/
getfacl: Removing leading '/' from absolute path names
# file: temp/
# owner: root
# group: shares
user::rwx
group::rwx
other::r--
default:user::rwx
default:group::rwx
default:group:users:r-x
default:mask::rwx
default ther::r--
|
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:
Quote:
[temp]
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
Quote:
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--