Advanced · Permissions and Links
umask: Set new file permission mask
Syntax
umask [three-digit octal]Examples
umask 077Usage and sandbox support
The basic permissions of ordinary files are 666, and the directory permissions are 777, and then remove the bits specified by the mask.
Hands-on exercises
- Set default permissions firstAdvanced
Related commands
chmodModify permissionschownModify ownerlnCreate symbolic linkreadlinkView symbolic link targetssudoExecute command as administratorgroupsQuery user groupchgrpModify the group to which the file belongsgetfaclView extended access controlsetfaclSet up extended access controllsattrQuery file attribute flagschattrModify file attribute flagssuSwitch user sessionpasswdChange account passworduseraddcreate AccountusermodModify account propertiesuserdelDelete accountgroupaddCreate user groupgetentQuery system account database