LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-21-2014, 10:14 PM   #1
chrbar
LQ Newbie
 
Registered: Dec 2013
Posts: 5

Rep: Reputation: Disabled
Question How to stop permissions inheritance?


Hello,

I would like to know if it's possible to stop permissions inheritance?

I've a level-1 folder named "common", wherein all users can read/write.
Inside this folder, I've created a level-2 folder named "private" wherein members of "abc" group can enter/read/write.

I can build correctly this structure, but I'd like that members of "abc" are not able to rename "private" folder, and I don't succeed to do that!
I've tried many way, including ACL, but it doesn't work!
I'm not sure, but I think the problem is that members of "abc" group are member of "users" (member of child folder/group are member of parent folder/group)!

Do you know how can I do that?

Thanks for your help,
Chris

\common\private\

root@server:/# getfacl common
# file: common
# owner: root
# group: users
# flags: -s-
user::rwx
group::rwx
other::---

root@server:/common# getfacl private
# file: private
# owner: root
# group: abc
# flags: -s-
user::rwx
group::rwx
other::---

Last edited by chrbar; 02-21-2014 at 10:28 PM.
 
Old 02-22-2014, 11:23 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
If you set the "sticky" bit on the "common" directory ("chmod +t common"), users will be able to delete or rename only the files that they own. That should suffice unless it proves too restrictive for the ordinary files there.
 
1 members found this post helpful.
Old 02-22-2014, 12:04 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Just remove the group permissions.
 
  


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
Default ACL and permissions inheritance mikemrh9 Linux - Security 5 07-05-2016 06:19 AM
stop ssh login without root permissions cad Linux - Networking 3 12-28-2006 10:02 AM
how to stop admin-user changing file permissions Peter@KKVS Linux - Networking 1 11-10-2006 03:57 AM
how to stop system from auto resetting permissions of /home folder? gain Linux - Networking 5 08-17-2006 09:59 PM
inheritance kalleanka Programming 4 02-29-2004 07:19 PM

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

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