Welcome to the most active Linux Forum on the web.
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 10-17-2009, 12:39 PM   #1
Registered: Sep 2009
Posts: 31

Rep: Reputation: 15
Group Permissions on a file or share


I'm studying Linux and just started reading about permissions and ownership. My question is how would you have multiple users or groups given access to a certain directory? When doing an ls -l I see the owner, group and others that have permissions that have access to the file or directory. But what if I need multiple different groups access to a particular file or directory all with different permissions?

Old 10-17-2009, 01:44 PM   #2
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Originally Posted by scucci View Post
But what if I need multiple different groups access to a particular file or directory all with different permissions?

Do you mean users with different permissions, or a directory with different permissions?

If you have a number of different people, all of whom need access to a particular directory but that have nothing else in common:

1. Create a new group for this role.

2. Change the group ownership of the target directory to the new group.

3. For each user that needs access to the directory, make them members of the new group.
Old 10-17-2009, 02:10 PM   #3
Registered: Nov 2005
Distribution: CentOS 5, Fedora 23
Posts: 216

Rep: Reputation: 29
Have you looked into ACL's? an ACL allows permissions for multiple users/groups on specific files/folders. I believe this is what you want?


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
Group permissions - Who last modified a file? digitalgravy Linux - General 2 09-21-2008 05:01 PM
file group permissions kool_kid Red Hat 4 10-17-2007 08:38 AM
group and file rw permissions Cichlid Linux - Newbie 3 08-12-2007 07:54 PM
Group File Permissions Devilin Linux - General 2 10-22-2005 07:06 PM
File/group permissions and sharing kscott121 Linux - Software 3 10-15-2005 10:39 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:40 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