umask

get or set the file mode creation mask 

KornShell Built-in


SYNOPSIS

umask [-S] [mode]


DESCRIPTION

umask sets the file mode creation mask of the invoking process to the given mode. You can specify the mode in any of the formats recognized by chmod; see chmod for more information.

The file mode creation mask (often called the umask) determines the default permissions for any file created by the process. For example, a file created by the create command has the permissions specified by the umask unless the create command specifies explicit permissions.

Calling umask without a mode argument displays the current umask.

Options

-S 

displays the umask in a symbolic form:

u=perms,g=perms,o=perms

giving user, group and other permissions. Permissions are specified as combinations of the letters r (read), w (write) and x (execute).


DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

1 

Failure due to an invalid command line argument, or invalid mode.


PORTABILITY

POSIX.2. x/OPEN Portability Guide 4.0.

Windows systems do not support the umask command. This manual page is provided for information only.


NOTE

This command is built into the MKS KornShell.


AVAILABILITY

MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
chmod


MKS Toolkit 9.2 Documentation Build 16.