|
|
1.1 root 1:
2:
3: chown() COHERENT System Call chown()
4:
5:
6:
7:
8: Change ownership of a file
9:
10: cchhoowwnn(_f_i_l_e, _u_i_d, _g_i_d)
11: cchhaarr *_f_i_l_e ;
12: sshhoorrtt _u_i_d, _g_i_d;
13:
14: chown changes the owner of file to user id uid and group id gid.
15:
16: To change only the user id without changing the group id, stat
17: should be used to determine the value of gid to pass to chown.
18:
19: chown is restricted to the superuser, because granting the ordi-
20: nary user the ability to change the ownership of files might cir-
21: cumvent file space quotas or accounting based upon file owner-
22: ship.
23:
24: chown returns -1 for errors, such as nonexistent file or the
25: caller not being the superuser.
26:
27: ***** See Also *****
28:
29: chmod(), COHERENT system calls, passwd, stat()
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.