Skip site navigation (1)Skip section navigation (2)

FreeBSD Man Pages

Man Page or Keyword Search:
Man Architecture
Apropos Keyword Search (all sections) Output format
home | help
CHOWN(2)                  FreeBSD System Calls 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 accounting
       procedures.

SEE ALSO
       chown(1), passwd(5)

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

ASSEMBLER
       (chown = 16.)
       sys chown; name; owner; group

                                                                      CHOWN(2)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | DIAGNOSTICS | ASSEMBLER

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=chown&sektion=2&manpath=Unix+Seventh+Edition>

home | help