Commit | Line | Data |
---|---|---|
e6817382 BJ |
1 | .TH CHOWN 2 |
2 | .SH NAME | |
3 | chown \- 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 | |
9 | The file | |
10 | whose name is given by the null-terminated string pointed | |
11 | to by | |
12 | .I name | |
13 | has its | |
14 | .I owner | |
15 | and | |
16 | .I group | |
17 | changed as specified. | |
18 | Only the super-user may | |
19 | execute this call, | |
20 | because if users were able to give files away, | |
21 | they could defeat the (nonexistent) | |
22 | file-space accounting procedures. | |
23 | .SH "SEE ALSO" | |
24 | chown(1), passwd(5) | |
25 | .SH DIAGNOSTICS | |
26 | Zero is returned if the owner is changed; | |
27 | \-1 is returned | |
28 | on illegal owner changes. | |
29 | .SH "ASSEMBLER (PDP-11)" | |
30 | (chown = 16.) | |
31 | .br | |
32 | .B sys chown; name; owner; group |