You are here
Home > Redhat > What is UMASK ?

What is UMASK ?

The user file-creation mode mask [umask] is used to determine the file permission for Normal User and Root User.

Default Value for Folder                       777

Default Value for File                            666

For Root User               Umask value is 022

Type             Permission            Umask              Substract             Folder          Permission

Folder           777                       022                  [ 777 – 022 ]        755              rwxr-xr-x

File               666                        022                 [ 666 – 022 ]        644              rw-r–r–

For Normal User                Umask value is 002

Type            Permission             Umask             Substract             Folder          Permission

Folder         777                         002                 [ 777 – 002 ]        775              rwxrwxr-x

File             666                          002                 [ 666 – 002 ]        664              rw-rw-r–

 

Leave a Reply

19 − 3 =

Top