Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-10-2006, 02:34 PM   #1
LQ Newbie
Registered: Jan 2005
Distribution: suse
Posts: 12

Rep: Reputation: 0
Question 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

Old 02-11-2006, 02:46 PM   #2
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
create mask = 774

Wouldn't that give the owner and group rwx and everyone else just read?
Old 02-16-2006, 03:24 PM   #3
LQ Newbie
Registered: Jan 2005
Distribution: suse
Posts: 12

Original Poster
Rep: Reputation: 0
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba share permissions anorman Linux - Software 1 10-22-2005 02:49 AM
samba share permissions? psychomaniac Linux - Software 4 04-29-2004 02:22 PM
directory permissions incorrectly set DutchBoy Linux - Security 3 01-05-2004 09:40 AM
How to set correct file/directory permissions pat.delaney Linux - Networking 5 12-02-2003 09:39 AM
Samba Share Permissions stever Linux - Newbie 4 05-17-2003 02:26 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration