Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-08-2008, 10:55 AM   #1
Registered: Feb 2008
Location: Atlanta
Distribution: Ubuntu 9.10
Posts: 42

Rep: Reputation: 17
File/Directory Permissions Question

I'm trying to get acquainted with Linux after dealing with Windows for decades, but here's a question regarding file/directory permissions:

I have a shared directory and members of 2 groups need to access it. Group A should have read-only access, Group B should have read-write access, and Groups C+ should have no access whatsoever.

In Windows this would be a breeze to set up the group permissions accordingly. From what I understand about Linux though, I can specify one set of permissions for the owner, another set of permissions for a specified group, and then a third set of permissions for everyone else. This makes setting 3 different group access policies seemingly impossible.

What would be the best way to control access to this folder in the manner I need to do so? The folder is shared via Samba (if that provides any additional functionality).

Old 05-08-2008, 01:08 PM   #2
Registered: Jul 2005
Location: Ohio
Distribution: CentOS 4 & 5, Ubuntu 7.04 & 7.10
Posts: 38

Rep: Reputation: 15
It's been a while since I've dived into the the samba manuals, but you can definitely set it up.

One thing you might want to setup is which will put a web interface on your samba server / configuration.

Last edited by Jay_Drummond; 05-08-2008 at 01:10 PM.
Old 05-08-2008, 01:57 PM   #3
LQ Newbie
Registered: Jan 2006
Posts: 9

Rep: Reputation: 0
What we did for our server was set the FS owner/permissions as follows:

drwxrwx--- 33 root DOMAIN+domain users 4096 May 8 11:22 some_folder.

Using Domain users is a safe group because everyone is in it, then limit users rights with smb.conf.

Add the following for the [share] in smb.conf

comment = some_folder
path = /some_path/some_folder
create mask = 0770
directory mask = 0770
directory security mask = 0770
read list = "@DOMAIN+domain users"
write list = DOMAIN+username "@DOMAIN+Domain Admins"
valid users = "@DOMAIN+domain users"

For your group C make sure they are not in your valid users group.

Of course change your "winbind separator = +" so whatever you are using.


acl, permissions

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
File/Directory Permissions waynevnc Debian 1 05-23-2005 04:23 PM
Directory Permissions question sopiaz57 Linux - General 4 06-11-2004 12:44 PM
Permissions, File, Directory access tHcnunz Linux - Newbie 3 03-26-2004 09:25 AM
File and Directory permissions plasmapudding Red Hat 3 09-09-2003 10:26 AM
Directory and file permissions ryan Linux - Security 2 12-06-2000 12:46 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:44 AM.

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