Setting default permissions with umask.

PaulGureghian

New Member
Joined
Jun 22, 2020
Messages
2
Reaction score
0
Credits
16
He sets the umask as 0027, yet the default permissions applied are 640 instead of my expected 750.


Capture11.PNG
 


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
 
The calculations for files and directories are different, to calculate the final permissions you do this.
Directories: 0777 - umask = permissions
Files: 0666 - umask - permissions
 
@wizardfromoz and others: The thread has been moved to the most appropriate sub-forum.
 

Staff online

Members online


Latest posts

Top