home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / futils / futils~1 / man / manpages.zoo / chmod.1 < prev    next >
Encoding:
Text File  |  1991-11-11  |  2.9 KB  |  133 lines

  1.  
  2.  
  3.  
  4. CHMOD(1L)                                               CHMOD(1L)
  5.  
  6.  
  7.  
  8. NAME
  9.      chmod - change the access permissions of files
  10.  
  11. SYNOPSIS
  12.      chmod [-LRcfv] mode file...
  13.  
  14. DESCRIPTION
  15.      This manual page documents the GNU version of chmod.  chmod
  16.      changes the permissions of each given file according to
  17.      _✓m_✓o_✓d_✓e, which can be either a symbolic representation of
  18.      changes to make, or an octal number representing the bit
  19.      pattern for the new permissions.
  20.  
  21.      The format of a symbolic mode is `[ugoa...][[+-
  22.      =][rwxXstugo...]...][,...]'.  Multiple symbolic operations
  23.      can be given, separated by commas.
  24.  
  25.      A combination of the letters `ugoa' controls which users'
  26.      access to the file will be changed: the user who owns it
  27.      (u), other users in the file's group (g), other users not in
  28.      the file's group (o), or all users (a).  If none of these
  29.      are given, the effect is as if `a' were given, but bits that
  30.      are set in the umask are not affected.
  31.  
  32.      The operator `+' causes the permissions selected to be added
  33.      to the existing permissions of each file; `-' causes them to
  34.      be removed; and `=' causes them to be the only permissions
  35.      that the file has.
  36.  
  37.      The letters `rwxXstugo' select the new permissions for the
  38.      affected users: read (r), write (w), execute (or access for
  39.      directories) (x), execute only if the file is a directory or
  40.      already has execute permission for some user (X), set user
  41.      or group ID on execution (s), save program text on swap dev-
  42.      ice (t), the permissions that the user who owns the file
  43.      currently has for it (u), the permissions that other users
  44.      in the file's group have for it (g), and the permissions
  45.      that other users not in the file's group have for it (o).
  46.  
  47.      A numeric mode is from one to four octal digits (0-7),
  48.      derived by adding up the bits with values 4, 2, and 1.  Any
  49.      omitted digits are assumed to be leading zeros.  The first
  50.      digit selects the set user ID (4) and set group ID (2) and
  51.      save text image (1) attributes.  The second digit selects
  52.      permissions for the user who owns the file: read (4), write
  53.      (2), and execute (1); the third selects permissions for
  54.      other users in the file's group, with the same values; and
  55.      the fourth for other users not in the file's group, with the
  56.      same values.
  57.  
  58.      OPTIONS
  59.  
  60.  
  61.  
  62.  
  63. Page 1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CHMOD(1L)                                               CHMOD(1L)
  71.  
  72.  
  73.  
  74.      -_✓c   Verbosely describe only files whose permissions actu-
  75.           ally change.
  76.  
  77.      -_✓f   Do not print error messages about files whose permis-
  78.           sions cannot be changed.
  79.  
  80.      -_✓v   Verbosely describe changed permissions.
  81.  
  82.      -_✓L   Dereference symbolic links (recursively change the per-
  83.           missions of directories pointed to by symbolic links).
  84.  
  85.      -_✓R   Recursively change permissions of directories.
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Page 2
  130.  
  131.  
  132.  
  133.