LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 10-17-2009, 12:39 PM   #1
scucci
Member
 
Registered: Sep 2009
Posts: 31

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


Hello,

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?

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

Rep: Reputation: 101Reputation: 101
Quote:
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?

Thanks.
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
themanwhowas
Member
 
Registered: Nov 2005
Distribution: CentOS 5, BT5, Slackware 12.0
Posts: 206

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?

http://linux.die.net/man/1/setfacl
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 06:33 AM.

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