LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 03-10-2014, 11:50 AM   #1
cmunger
LQ Newbie
 
Registered: Mar 2014
Location: Dallas, TX
Distribution: RHEL 6.5
Posts: 15

Rep: Reputation: 0
Restricting one member of a group from accessing a file


Hey guys,

Im working in the RHCSA review book I have again, so bear with me on these questions.
I am trying to set the permissions on a file to allow group access to rwx, but restrict one certain member of the group from having any access.

User1, user2, and user 3 are part of GroupA.
I need to allow GroupA full rwx on file_A, but NOT allow user2 any privledges to the file (no rw or x).

I cant wrap my head around how this is supposed to work.

Thanks in advance for the help, and yalls time.
 
Old 03-10-2014, 11:55 AM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Check file ACLs

--C
 
Old 03-10-2014, 12:13 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
What's the point in having all of the members part of the same group when they do not all have the same access to files in that group?

Personally I would make two groups, maybe "level1" and "level2". Add all users to the level1 group, and everybody except the restricted user to the level2 group, then set your file permissions appropriately.

I know this doesn't answer the specific scenario you have from the book, but it sounds like a pretty dumb scenario to begin with

Last edited by suicidaleggroll; 03-10-2014 at 12:16 PM.
 
Old 03-10-2014, 12:14 PM   #4
cmunger
LQ Newbie
 
Registered: Mar 2014
Location: Dallas, TX
Distribution: RHEL 6.5
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by custangro View Post
Check file ACLs

--C
I have no idea how I missed that. It was staring me in the face, and I couldnt even register it as what I needed. Thank you so much.
 
Old 03-10-2014, 05:47 PM   #5
cmunger
LQ Newbie
 
Registered: Mar 2014
Location: Dallas, TX
Distribution: RHEL 6.5
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by suicidaleggroll View Post
What's the point in having all of the members part of the same group when they do not all have the same access to files in that group?

Personally I would make two groups, maybe "level1" and "level2". Add all users to the level1 group, and everybody except the restricted user to the level2 group, then set your file permissions appropriately.

I know this doesn't answer the specific scenario you have from the book, but it sounds like a pretty dumb scenario to begin with
Not only is that a ton simpler, but it makes sense for the work world. But like I said, its a review book for the RHCSA exam. Ive noticed a ton of this stuff doesnt make much application sense.
 
  


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
Group permissions: user can't access 770 directory even though a member of group jm34003 Linux - Security 13 05-16-2012 02:03 PM
group member not able to write to group's file gjhartwell Linux - Newbie 2 02-09-2011 09:23 AM
restricting Firefox to a group rastavideo Ubuntu 10 01-07-2007 07:55 PM
Restricting a group from going online thomasfingram Linux - Newbie 1 08-11-2005 05:05 PM
User Group for Restricting Internet Access kyleinc Linux - General 6 04-17-2004 05:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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