Find the answer to your Linux question:
Results 1 to 2 of 2
Is there a way to umask only a specific directory? I want that everyone who add a file in this folder gets its file moded 700. But that adding it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    2

    Question [SOLVED] Umask a specific directory


    Is there a way to umask only a specific directory?
    I want that everyone who add a file in this folder gets its file moded 700. But that adding it in any other folder still moded as default.

    Thanks in advance !

  2. #2
    Just Joined!
    Join Date
    Nov 2009
    Posts
    2
    I've solved using access control lists. man setaclf

    setfacl -d -m g:riskyusers:r mypreciousdir
    Set read only perms to any new file created in mypreciousdir by a member of the riskyusers group.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •