Skip to content

umask

https://www.linuxtrainingacademy.com/all-umasks/

umask digit default file permissions default directory permissions
0 rw rwx
1 rw rw
2 r rx
3 r r
4 w wx
5 w w
6 x x
7 (no permission allowed) (no permission allowed)
#value  Source->Result
002       666 -> 664  
002       777 -> 775

022       666 -> 644
022       777 -> 755