LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-18-2012, 04:09 PM   #1
gw1500se
Member
 
Registered: Mar 2004
Distribution: Mandriva 2010.0
Posts: 250

Rep: Reputation: 31
Multi-Level Group access


It has been awhile since I've need to do anything with permissions until now but I can't remember the trick to setting multi-level group permissions. I need to give one group R/W access, another R/O access while denying all access to everyone else. TIA.
 
Old 11-18-2012, 06:40 PM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
Lightbulb

Set the guid.

http://www.expertslogin.com/linux-ad...bit-suid-guid/
 
Old 11-18-2012, 09:06 PM   #3
gw1500se
Member
 
Registered: Mar 2004
Distribution: Mandriva 2010.0
Posts: 250

Original Poster
Rep: Reputation: 31
I don't see how that helps. The R/O group does not exist with that directory. If I change the group to the R/O group then I have a problem with the R/W group.
 
Old 11-19-2012, 05:41 AM   #4
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
Lightbulb

Set GUID so the r/w group can share the files created. Then set all others to r/o. ( You also need execute to access the directory)

Code:

chmod -r 2775 /directory/in/question


2 - guid -- Files are created based on group
7 -rwx --> Owner
7 -rwx --> Group
5 -r-x --> Others


chown -R owner.group /directory/in/question
Now you should have a working directory for a group to share full access while all others can only read.
 
Old 11-19-2012, 08:12 AM   #5
gw1500se
Member
 
Registered: Mar 2004
Distribution: Mandriva 2010.0
Posts: 250

Original Poster
Rep: Reputation: 31
Thanks for the reply but that does no do what I need. Perhaps I was not clear enough in my original explanation. I do cannot give all others access. I need R/W for groupa, R/O for groupb and NO access for all others.
 
Old 11-20-2012, 05:13 AM   #6
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
Go it. Unfortunately , I don't believe it is possible -- ---to have two seperate groups on a directory or a file.
 
Old 11-20-2012, 08:52 AM   #7
gw1500se
Member
 
Registered: Mar 2004
Distribution: Mandriva 2010.0
Posts: 250

Original Poster
Rep: Reputation: 31
Thanks. I believe I need ACLS to do that.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mkdir: cannot create multi-level directory Jenny Peng Linux - Networking 2 08-29-2012 09:52 PM
Group permissions: user can't access 770 directory even though a member of group jm34003 Linux - Security 13 05-16-2012 02:03 PM
populating a multi level hash in perl casperdaghost Programming 2 07-04-2011 01:06 AM
How to give access rights to one group to the home-dirs of another group Peter@KKVS Linux - Networking 2 11-09-2006 12:38 AM
Can a JTable display multi-level data? paulsm4 Programming 4 05-09-2006 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:55 AM.

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