-   Linux - General (
-   -   how to set Samba directory / share permissions (

rwtreke 02-10-2006 02:34 PM

how to set Samba directory / share permissions

I am having a problem with files and folders being created with the wrong permissions.
The way I need the directory / share structure is

Group1 has full read/write/execute

Group 2 has read and execute permissions except for one subfolder
/subfolder2a - read execute
/subfolder2b - read write execute
/subfolder2c - read execute

How would I accomplish this?

The main problem I am having is when a user in share1 puts a file or folder into subfolder2a it isn't executable from someone logged in share2.
Also if a file or folder is created in subfolder2b users in share2 can't write or delete that folder or file.

If I use a global setting of
force directory = 777
force create mask = 777
Then when a user from share1 adds something to subfolder2a Group2 has full access to it and they only need read execute.

If I use a global setting of
inherit permissions = yes
then the directories and files are created properly but are not executable. (this seems to be a documented problem)

Any help that can be provided would be great. Ideas and suggestions are very welcome as well.

Thanks for your time


msound 02-11-2006 02:46 PM

create mask = 774

Wouldn't that give the owner and group rwx and everyone else just read?

rwtreke 02-16-2006 03:24 PM

I don't think that will work
The create mask = 774 would give owner and group to WRE and guest Execute but,
When someone in group2 puts a file somewhere then group1 would only have Execute access.

So the question still remains, Is there a way to do what I am needing to do using Samba?

All times are GMT -5. The time now is 05:30 PM.