Review your favorite Linux distribution.
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 07-06-2006, 05:06 AM   #1
Registered: Dec 2005
Location: The most beautiful city in the world.
Distribution: Mostly RedHat. Also Suse, Ubuntu, PHLAK etc.
Posts: 149

Rep: Reputation: 15
Permissions: giving specific groups write access to a directory

Hi again friends

I have a directory, let's call it /directory.

I want to give the group root and the group users12 write permission to this directory and everyone else rx permissions.

I know how to assign a directory to a group, and how to change the permissions on that directory, but I have no idea how to assign write permissions to more than one group...

Here's what I've tried:

chmod 775 /directory

That would give it owner:rwx group:rwx other:-rx permissions right?

Where to from there?


Mmm, just saw something interesting. Something about creating a new group, assigning the root and user12 group to this new group, and making the new group the owner of the directory...

Isn't there some other way to do this though?

Last edited by kinetik; 07-06-2006 at 06:03 AM.
Old 07-06-2006, 08:18 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
In fedora core 5, the GUI users and groups utility will not let you add a group to a group. I don't know if this is intrinsically possible using the CLI. BUT--why have this complexity? Why not just create a group with the right members?
Old 07-06-2006, 08:24 AM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Since root would have write access to /directory anyway, you could make user12 the group owner of the directory.
If you want to have select users and groups have write access then use an access control list with the command "setfacl".
Old 07-06-2006, 08:30 AM   #4
Registered: Dec 2005
Location: The most beautiful city in the world.
Distribution: Mostly RedHat. Also Suse, Ubuntu, PHLAK etc.
Posts: 149

Original Poster
Rep: Reputation: 15
Thanks pixellany and jschiwal, think you two provided me with the answers I needed.

You're both excellent!


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
File and directory permissions or groups kuplo Linux - Newbie 1 11-11-2005 03:06 AM
giving permissions or joining groups? dunny05 Linux - Newbie 2 04-20-2005 05:43 AM
fstab: giving a user acct read-only access to specific partition doorbits Linux - General 4 05-18-2004 02:11 PM
Users, groups, permissions - specific task question Doctafonk Linux - General 2 04-21-2004 09:05 PM
Giving Specific users access to the reboot command shassouneh Linux - Security 15 03-24-2004 05:10 PM > Forums > Linux Forums > Linux - General

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