how to set permissions with umask with fedora linux ubuntu

11:01 AM
Setting Permissions Defaults with umask


You want to understand why files are created with a certain set of default permissions, and how to configure them yourself.


The umask (user file-creation mode mask) controls this behavior. To see what yours is, use:


$ umask


0022




or:


$ umask -S




u=rwx,g=rx,o=rx




To change it temporarily, for the duration of your login session, use:


$ umask 0002

0 Comments