Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ls(1)

chmod(2)



CHMOD(1)                 DOMAIN/IX SYS5                  CHMOD(1)



NAME
     chmod - change mode

USAGE
     chmod mode files

DESCRIPTION
     Chmod allows the named files to be changed according to
     mode, which may be absolute or symbolic.

     An absolute mode is an octal number constructed from the OR
     of the following modes:

          4000      set user ID on execution
          2000      set group ID on execution
          0400      read by owner
          0200      write by owner
          0100      execute (search in directory) by owner
          0070      read, write, execute (search) by group
          0007      read, write, execute (search) by others

     A symbolic mode has the following form:

          [ who ] op permission [ op permission ]

     Who is a combination of the letters u for owner's permis-
     sions), g (group), and o (other).  The letter a stands for
     ugo, the default if who is omitted.

     Op can be plus (+) to add permission to the file's mode,
     minus (-) to take away permission, or equal (=) to assign
     permission absolutely (reset all other bits).

     Permission is any combination of the letters r (read), w
     (write), x (execute), s (set owner or group IDs), and t
     (save text); u, g, or o indicate that permission is to be
     taken from the current mode.  Omitting permission is only
     useful with = to take away all permissions.

     Multiple symbolic modes separated by commas may be given.
     Operations are performed in the order specified.  The letter
     s is only useful with u or g , and t only works with u.

EXAMPLES
     To deny others write permission in file1, use the following
     command:

          chmod o-w file1





Printed 12/4/86                                           CHMOD-1







CHMOD(1)                 DOMAIN/IX SYS5                  CHMOD(1)



     To make file1 executable, type this:

          chmod +x file1

     To allow the owner of file1 read, write, and execute permis-
     sion to file1 -- and the group and others only read permis-
     sion -- use this command:

          # chmod 744 file1

CAUTIONS
     The DOMAIN system's single-level store requires that all
     files be mappable and, therefore, readable by the OS.  This
     means that DOMAIN/IX does not recognize execute-only or
     write-only files.  For example, if you type chmod 111 foo,
     DOMAIN/IX automatically sets read permissions for the owner
     as follows:

          -r-xr-xr-x  1 owner      unix            5 May 22 11:47
          foo

     Also, if you type chmod 222 foo, DOMAIN/IX automatically
     sets read permissions for owner as follows:

          -rw-rw-rw-  1 harper   sys             5 May 22 11:50
          foo

     Only the owner of a file (or the super-user) may change its
     mode.

     To set the group ID, the group associated with the file must
     correspond to your current group ID.

RELATED INFORMATION
     ls(1), chmod(2).


















CHMOD-2                                           Printed 12/4/86





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