• We did not send an email asking for donations - please read this post.

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
 


wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,776
Reaction score
6,601
Credits
28,585
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
Joined
Dec 11, 2019
Messages
4,944
Reaction score
3,587
Credits
36,026
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!

Linux.org Hosting Donations
Consider making a donation

Members online


Top