Restricting one member of a group from accessing a file
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.