Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

First problem: Is it possible to have the sticky bit on directories being inherited for newly created subdirectories?

Second problem: How can I set different default ACLs for directories and files, so that newly created directories will get the permission rwxrws--t (with the sticky bit t from the first problem) and newly created files will get rw-r-----?

share|improve this question
It sounds as though you have a real problem that needs solving, and this is not it. – Ignacio Vazquez-Abrams Sep 2 '12 at 17:46
The "whole" problem is: I want a directory structure that belongs to the user "user" and to the group "group". It is not accessible by others. When user "bob" (also from group "group") creates a file inside there, it should belong to user "bob" and group "group" automatically and get the permission rw-r-----; when this user creates a directory, it should belong to the same owner and group as a file, but the permission should be rwxrws--t, so that any user can create other files in this directory, but only delete his/her own ones. – Alfred Krohmer Sep 2 '12 at 22:20
Okay. But what is this for? – Ignacio Vazquez-Abrams Sep 2 '12 at 23:16
Everybody should be able to create new files and folders in the directory structure, even in the subfolders owned by other users, but it should only be possible for a user to delete files he/she ownes. It should simply be a shared directory with these permissions. – Alfred Krohmer Sep 3 '12 at 19:46
up vote 1 down vote accepted
  1. No. Only group ownership can be inherited, by making the directory setgid.

  2. You can't. You will need to run a separate process that detects creation of the objects and changes the ACLs appropriately.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.