<a name=


Change file owner and/or group

`chown' changes the user and/or group ownership of each given FILE to NEW_OWNER or to the user and group of an existing reference file.

      chown [OPTION]... NEW_OWNER FILE...
      chown [OPTION]... :GROUP FILE...
      chown [OPTION]... --reference=RFILE FILE...

   If used, NEW_OWNER specifies the new owner and/or group as follows
   (with no embedded white space):

     [OWNER] [ [:.] [GROUP] ]

   Some examples of how the owner/group can be specified:

     If only an OWNER (a user name or numeric user id) is given, that
     user is made the owner of each given file, and the files' group is
     not changed.

     If the OWNER is followed by a colon or dot and a GROUP (a group
     name or numeric group id), with no spaces between them, the group
     ownership of the files is changed as well (to GROUP).

     If a colon or dot but no group name follows OWNER, that user is
     made the owner of the files and the group of the files is changed
     to OWNER's login group.

     If the colon or dot and following GROUP are given, but the owner
     is omitted, only the group of the files is changed; in this case,
     `chown' performs the same function as `chgrp'.


     Verbosely describe the action for each FILE whose ownership
     actually changes.

     Do not act on symbolic links themselves but rather on what they
     point to.

     Do not print error messages about files whose ownership cannot be

     Act on symbolic links themselves instead of what they point to.
     This is the default.  This mode relies on the `lchown' system call.
     On systems that do not provide the `lchown' system call, `chown'
     fails when a file specified on the command line is a symbolic link.
     By default, no diagnostic is issued for symbolic links encountered
     during a recursive traversal, but see `--verbose'.

     Use the user and group of the reference FILE instead of an explicit
     NEW-OWNER value.

     Recursively change ownership of directories and their contents. 

     Verbosely describe the action (or non-action) taken for every FILE.
     If a symbolic link is encountered during a recursive traversal on
     a system without the `lchown' system call, and `--no-dereference'
     is in effect, then issue a diagnostic saying neither the symbolic
     link nor its referent is being changed.

Related commands:

chgrp - Change group ownership
chmod - Change access permissions