Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ chown(2) — GENIX 4.1A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chown(1)

passwd(5)



      CHOWN(2)                GENIX Programmer's Manual                CHOWN(2)



      NAME
           chown - change owner and group of a file

      SYNOPSIS
           chown(name, owner, group)
           char *name;

      DESCRIPTION
           The file whose name is given by the null-terminated  string  pointed
           to  by  name has its owner and group changed as specified.  Only the
           super-user may execute this call, because if users were able to give
           files  away, they could defeat the (nonexistent) file-space account-
           ing procedures.

           On some systems, chown clears the set-user-id bit  on  the  file  to
           prevent  accidental  creation  of  set-user-id programs owned by the
           super-user.

      SEE ALSO
           chown(1), passwd(5)

      DIAGNOSTICS
           Zero is returned if the owner is changed; -1 is returned on  illegal
           owner changes.































      Printed 11/16/83                                                        1



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