1CHOWN(2)                      System Calls Manual                     CHOWN(2)
2
3
4

NAME

6       chown - change owner and group of a file
7

SYNOPSIS

9       chown(name, owner, group)
10       char *name;
11

DESCRIPTION

13       The  file  whose name is given by the null-terminated string pointed to
14       by name has its owner and group changed as specified.  Only the  super-
15       user  may  execute  this call, because if users were able to give files
16       away, they could defeat the (nonexistent) file-space accounting  proceā€
17       dures.
18

SEE ALSO

20       chown(1), passwd(5)
21

DIAGNOSTICS

23       Zero  is  returned  if  the owner is changed; -1 is returned on illegal
24       owner changes.
25

ASSEMBLER

27       (chown = 16.)
28       sys chown; name; owner; group
29
30
31
32                                                                      CHOWN(2)
Impressum