File:  [MW Coherent from dump] / coherent / a / usr / man / MULTI / chown
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



chown()                COHERENT System Call               chown()




Change ownership of a file

cchhoowwnn(_f_i_l_e, _u_i_d, _g_i_d)
cchhaarr *_f_i_l_e ;
sshhoorrtt _u_i_d, _g_i_d;

chown changes the owner of file to user id uid and group id gid.

To change  only the user  id without changing the  group id, stat
should be used to determine the value of gid to pass to chown.

chown is restricted  to the superuser, because granting the ordi-
nary user the ability to change the ownership of files might cir-
cumvent file  space quotas or  accounting based upon  file owner-
ship.

chown  returns -1  for errors,  such as  nonexistent file  or the
caller not being the superuser.

***** See Also *****

chmod(), COHERENT system calls, passwd, stat()


































COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.