Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chmod(1)

chown(2)

group(4)

passwd(4)



  chown(1)                            CLIX                            chown(1)



  NAME

    chown, chgrp - Change owner or group of files or directories

  SYNOPSIS

    chown owner file ...

    chown owner directory ...

    chgrp group file ...

    chgrp group directory ...

  DESCRIPTION

    The chown command changes the owner of the file or directory to owner.
    The owner may be either a decimal user ID or a login name found in the
    password file.

    The chgrp command changes the group ID of the files or directory to group.
    The group may be either a decimal group ID or a group name found in the
    group file.

    Unless either command is invoked by the superuser, the set-user-ID and
    set-group-ID bits of the file mode, 04000 and 02000, respectively, will be
    cleared.

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

    If the named file is a symbolic link, ownerships of the link itself are
    modified and the ownerships of the referenced file are undisturbed.

  EXAMPLES

    1.  To change the owner of the /usr/adm/su.log file to root:

        chown root /usr/adm/su.log


    2.  To change the group ID of the /usr/mail/jimbob file to mail:

        chgrp mail /usr/mail/jimbob


  FILES

    /etc/passwd
           The password file




  2/94 - Intergraph Corporation                                              1






  chown(1)                            CLIX                            chown(1)



    /etc/group
           The group membership definition file

  NOTES

    In a Remote File Sharing environment, a user may not have the permissions
    that the output of the ls -l command implies.

  DIAGNOSTICS

    chown: unknown user id owner

    An incorrect uid or username was specified.

    chown: numeric user id too large

    Uid numbers greater than 65535 are not allowed.

  EXIT VALUES

    These commands return a value of 0 if successful.  If unsuccessful, they
    return a value of 1.  If usage errors occur, these commands return a value
    of 4.

  RELATED INFORMATION

    Commands: chmod(1)

    Functions: chown(2)

    Files: group(4), passwd(4)

    AT&T UNIX System V System Administrator's Guide.





















  2                                              Intergraph Corporation - 2/94




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