Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

I have a directory where many users have write access and often the permissions on the directory changes. Is there a tool that lets me monitor the files for changes and enforce a specific file permission or any other way I can enforce this when users have write permission.

share|improve this question

I think that if set the permissions for the group, instead of the user, it should work.

Have a look in the chmod man page

You can also set the group of the directory by using chgrp.

You can look in the Wiki for this command

Hope this helps

share|improve this answer
I know this, but I'm looking for something that can enforce the variables when it's on the user. – grm Aug 8 '12 at 13:38
One easy thing and fast thing, depending on your needs, maybe you can create a script that runs from time to time and sets the permissions for all the sub directories and files. – j0N45 Aug 8 '12 at 13:56

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.