shadedecho
Programmer
Ok, I am trying to get it so that certain users who login to certain Samba shares on my linux (rh6.1) server will by default be creating files with "0775" permissions. Right now, what is occuring is that new (or overwrited) files are given 764 permissions.
I should also mention that I successfully changed the directory permissions, meaning the permissions for when a user creates a directory in a share. I set that to "2775", so that it would have the sticky bit set, so that even in sub directories that a user creates, the files in that folder will by default get the group of the directory its in... this allows all our login users to be creating "collaborate-friendly".
So, in /etc/smb.conf, I saw where I could put those two configs in, on a per share basis.
here's what I have
[web]
comment = Web Root
path = /home/httpd/html
write list = {...}
read only = No
guest ok = No
create mode = 0775
directory mode = 2775
the {...} in write list actually contains a comma-delimited list of users we have in that share, as well as the @webgroup which specifies that all those people in that group are included (I assume, anyway).
I also tried changing "create mode" to "create mask", it had no effect.
Any ideas on what I can do to get around this? I want all files created (through a samba connection) by users of a share to default to 0775 permission. Thanks!
I should also mention that I successfully changed the directory permissions, meaning the permissions for when a user creates a directory in a share. I set that to "2775", so that it would have the sticky bit set, so that even in sub directories that a user creates, the files in that folder will by default get the group of the directory its in... this allows all our login users to be creating "collaborate-friendly".
So, in /etc/smb.conf, I saw where I could put those two configs in, on a per share basis.
here's what I have
[web]
comment = Web Root
path = /home/httpd/html
write list = {...}
read only = No
guest ok = No
create mode = 0775
directory mode = 2775
the {...} in write list actually contains a comma-delimited list of users we have in that share, as well as the @webgroup which specifies that all those people in that group are included (I assume, anyway).
I also tried changing "create mode" to "create mask", it had no effect.
Any ideas on what I can do to get around this? I want all files created (through a samba connection) by users of a share to default to 0775 permission. Thanks!