home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / utility / misc / fileutil.lha / fileutils-3.3 / cat / chmod.1 < prev    next >
Encoding:
Text File  |  1992-08-28  |  3.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4. CHMOD(1L)         MISC. REFERENCE MANUAL PAGES          CHMOD(1L)
  5.  
  6.  
  7.  
  8. NAME
  9.      chmod - change the access permissions of files
  10.  
  11. SYNOPSIS
  12.      chmod [-Rcfv] 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.      chmod ignores symbolic links; the chmod system  call  cannot
  59.      change  their  permissions.  This is not a problem since the
  60.  
  61.  
  62.  
  63. Sun Release 4.1           Last change:                          1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CHMOD(1L)         MISC. REFERENCE MANUAL PAGES          CHMOD(1L)
  71.  
  72.  
  73.  
  74.      permissions of symbolic links are never used.
  75.  
  76.   OPTIONS
  77.      -_c   Verbosely describe only files whose  permissions  actu-
  78.           ally change.
  79.  
  80.      -_f   Do not print error messages about files  whose  permis-
  81.           sions cannot be changed.
  82.  
  83.      -_v   Verbosely describe changed permissions.
  84.  
  85.      -_R   Recursively change permissions of directories and their
  86.           contents.
  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. Sun Release 4.1           Last change:                          2
  130.  
  131.  
  132.  
  133.