Setting default permissions with umask.



wizardfromoz

Administrator
Staff member
Gold Supporter
Credits
18,240
Is this a Redhat inquiry?

If so, it should be in Redhat and derivatives.

Let us know and I can move it there.

Welcome to linux.org

Chris Turner
wizardfromoz
 

f33dm3bits

Gold Member
Gold Supporter
Credits
25,340
The calculations for files and directories are different, to calculate the final permissions you do this.
Directories: 0777 - umask = permissions
Files: 0666 - umask - permissions
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Latest posts

Top