Changing Default File Permission in Linux

 

Created on: 2/11/20
Last update: 3/11/20

Change the default permissions for new files

umask

Check the umask value for the current directory:

umask

Change the default umask value for the current directory, for example:

umask u=,g=w,o=rwx

setfacl

setfacl -d -m g::rwx .

References

Set the default permissions for newly created files

Default File Permissions (umask)

How to set umask for a specific folder