Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    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