LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-06-2006, 05:06 AM   #1
kinetik
Member
 
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?

ADDED:

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
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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
kinetik
Member
 
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!
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration