Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chgrp(1)

chmod(1)

id(1)

logname(1)

ls(1)

chown(2)

passwd(4)



chown(1)                       DG/UX 5.4R3.00                       chown(1)


NAME
       chown - change file owner

SYNOPSIS
       chown [-R] [-h] owner file ...

DESCRIPTION
       chown changes the owner of the files to owner.  The owner may be
       either a decimal user ID or a login name found in /etc/passwd file.

       If chown is invoked by other than the superuser, the set-user-ID bit
       of the file mode, 04000, is cleared.

       Only the owner of a file (or the superuser) may change the owner of
       that file.

       Valid options to chown are:

       -R     Recursive.  chown descends through the directory, and any
              subdirectories, setting the ownership ID as it proceeds.  When
              symbolic links are encountered, they are traversed.

       -h     If the file is a symbolic link, change the owner of the
              symbolic link.  Without this option, the owner of the file
              referenced by the symbolic link is changed.

EXAMPLES
       $ ls -l test_file
       -rw-rw-rw-   1 intern   other        349 Nov 18 13:26 test_file
       $ chown wilson test_file
       $ ls -l test_file
       -rw-rw-rw-   1 wilson   other        349 Nov 18 13:26 test_file
       $

       The original owner of test_file was intern.  After the chown command
       was executed, the new owner becomes wilson.  Only the current owner
       of a file or the superuser can change the owner name.

FILES
       /etc/passwd

SEE ALSO
       chgrp(1), chmod(1), id(1), logname(1), ls(1).
       chown(2), passwd(4).













Licensed material--property of copyright holder(s)                         1


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