Unix |
Unix v7 |
|
![]() |
chown(2) |
![]() |
chown − change owner and group of a file
chown(name,
owner, group)
char *name;
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.
chown(1), passwd(5)
Zero is returned if the owner is changed; −1 is returned on illegal owner changes.
(chown = 16.)
sys chown; name; owner; group
![]() |
chown(2) | ![]() |