BSD 3 development
[unix-history] / usr / man / man2 / chown.2
CommitLineData
e6817382
BJ
1.TH CHOWN 2
2.SH NAME
3chown \- change owner and group of a file
4.SH SYNOPSIS
5.B chown(name, owner, group)
6.br
7.B char *name;
8.SH DESCRIPTION
9The file
10whose name is given by the null-terminated string pointed
11to by
12.I name
13has its
14.I owner
15and
16.I group
17changed as specified.
18Only the super-user may
19execute this call,
20because if users were able to give files away,
21they could defeat the (nonexistent)
22file-space accounting procedures.
23.SH "SEE ALSO"
24chown(1), passwd(5)
25.SH DIAGNOSTICS
26Zero is returned if the owner is changed;
27\-1 is returned
28on illegal owner changes.
29.SH "ASSEMBLER (PDP-11)"
30(chown = 16.)
31.br
32.B sys chown; name; owner; group