umask Top Level

umask

  1. Quick and Concise Document

  2. Beginners

umask QCD Help

 Command            Description
 -------            -----------

 umask	            Display the current umask set for your account.

 umask nnn          Set the umask for your account, where nnn stands
                    for three octal digits referring to read/write/
                    execute permissions automatically assigned to
                    files and directories you create.



umask Beginner Help


Use the umask command to set file-creation mode mask, which will
assign a specified set of read/write/execute permissions to all files
that you create. The user file-creation mode mask is set to 000
(that's three zeros).  The three octal digits refer to
read/write/execute permissions for owner, group, and others,
respectively. The value of each specified digit is subtracted from the
corresponding ``digit'' specified by the system for the creation of a
file.  For example, umask 022 removes group and others write
permission, often a good umask to set for your files and directories.

To display what your umask is currently set to, type umask without an
argument:

   world%  umask
   22

Umask is recognized and executed by the shell for your current login
session, or it can be included in your .login or .profile file to be
invoked at login to automatically set the user's permissions on files
or directories created.  The default umask set for all new accounts is
077, which allows read/write/execute permission for user, and
subtracts read/write/execute permissions from group and others.
Please review the man pages for umask and chmod for more information
about using umask.
 

To remove read permissions only from group and others, type:

   world%  umask 044

To remove write permissions only from group and others, type:

   world%  umask 022
 
To remove execute permissions only from group and others, type:

   world%  umask 011

To remove read, write, execute pemissions from group and others, type:

   world%  umask 077

To remove read, write, execute permissions from others only, type:

   world%  umask 007


HOME Top of Help Desk Eye On The World  The World Kiosk


             For further assistance, please send an email 
                   request to support@world.std.com

        Copyright 1995 Software Tool & Die, Inc.  All Rights Reserved.

   Software Tool & Die, Inc., 1330 Beacon St. Suite 215 Brookline, MA 02146