LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to set Samba directory / share permissions (http://www.linuxquestions.org/questions/linux-general-1/how-to-set-samba-directory-share-permissions-413920/)

rwtreke 02-10-2006 02:34 PM

how to set Samba directory / share permissions
 
Hello,

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

(share1)
Group1 has full read/write/execute
/storage/folder1
/folder2
/folder3
/folder4
-------------

(share)
Group 2 has read and execute permissions except for one subfolder
/storage/folder2
/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

Robert

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 07:03 AM.