Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ umask(1) — sysv — mips UMIPS RISC/os 4.52

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chmod(1)

sh(1)

chmod(2)

creat(2)

umask(2)

profile(4)



UMASK(1-SysV)       RISC/os Reference Manual        UMASK(1-SysV)



NAME
     umask - set file-creation mode mask

SYNOPSIS
     umask [ ooo ]

DESCRIPTION
     The user file-creation mode mask is set to ooo.  The three
     octal digits refer to read/write/execute permissions for
     owner, group, and others, respectively (see chmod(2) and
     umask(2)).  The value of each specified digit is subtracted
     from the corresponding ``digit'' specified by the system for
     the creation of a file (see creat(2)).  For example, umask
     022 removes group and others write permission (files nor-
     mally created with mode 777 become mode 755; files created
     with mode 666 become mode 644).

     If ooo is omitted, the current value of the mask is printed.

     umask is recognized and executed by the shell.

     umask can be included in the user's .profile (see pro-
     file(4)) and invoked at login to automatically set the
     user's permissions on files or directories created.

SEE ALSO
     chmod(1), sh(1).
     chmod(2), creat(2), umask(2), profile(4) in the Programmer's
     Reference Manual.


























                         Printed 1/15/91                   Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026