umask

QNX SDP8.0User's GuideUser

Use the umask command to specify the mask for setting the permissions on new files.

A process's umask is a set of bits indicating permissions that should be removed from newly created files. The default mask is 0. umask can help prevent file access permissions being excessively liberal but it's also liable to deny write access when it's legitimate. For more information, see the umask entry in the Utilities Reference.

If you want to have group and world write access denied by default, the following command should be called early on in the system startup script:
umask 022

The shell has a built-in umask command; refer to the ksh entry in the Utilities Reference.

Page updated: