Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-21-2014, 11:14 PM   #1
LQ Newbie
Registered: Dec 2013
Posts: 5

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


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,


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

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

Last edited by chrbar; 02-21-2014 at 11:28 PM.
Old 02-22-2014, 12:23 PM   #2
Senior Member
Registered: Aug 2009
Distribution: CentOS
Posts: 3,686

Rep: Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603Reputation: 1603
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, 01:04 PM   #3
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,714

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration