UMASK

UMASK

Top  Previous  Next

 

The UMASK command sets the default access rights for files created within the QM session.

 

 

Format

 

UMASK { rights }

 

 

The UMASK command operates in the same way as the umask command of Unix/Linux, specifying the default access rights for files created within this QM session.

 

The rights code consists of three octal digits that specify the access permissions that the file is not to have. The first digit sets the rights for the owner of the file. The second digit sets the rights for users in the group to which the file is assigned except for the owner. The third digit sets the rights for all other users. Each digit is formed by adding the values:

4Do not allow read access
2Do not allow write access
1Do not allow execute access (attach access for directories)

 

Thus, for example,

UMASK 022

allows full access to the file's owner but prevents write access by all other users.

 

If the rights are omitted, the UMASK command reports the current access rights.