01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

UMASK ( 1) UMASK ( 1)<br />

NAME<br />

umask - set file-creation mode mask<br />

SYNOPSIS<br />

umask [ ooo ]<br />

DESCRIPTION<br />

The user file-creation mode mask is set to ooo. The three octal<br />

digits refer to read/write/execute permissions for owner, group ,<br />

and others , respectively (see chmod(2) and umask(2)). The value<br />

of each specified digit is subtracted from the corresponding "digit"<br />

specified by the system for the creation of a file (see creat(2)).<br />

For example, umask 022 removes group and others write permission<br />

(files normally created with mode 777 become mode 755;<br />

files created with mode 666 become mode 644). Umask 022 is the<br />

default on the UNIX PC.<br />

If ooo is omitted, the current value of the mask is printed.<br />

Umask is recognized and executed by the shell.<br />

SEE ALSO<br />

chmod(l), sh(l), chmod(2), creat(2), umask(2).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!