chown
Changes file owner
&reftitle.description;
boolchown
stringfilename
mixeduser
Attempts to change the owner of the file filename
to user user. Only the superuser may change the
owner of a file.
&reftitle.parameters;
filename
Path to the file.
user
A user name or number.
&reftitle.returnvalues;
&return.success;
&reftitle.examples;
Simple chown usage
]]>
&example.outputs.similar;
string(13) "php.net"
["passwd"]=>
string(1) "x"
["uid"]=>
int(148864)
["gid"]=>
int(148910)
["gecos"]=>
string(13) "php.net"
["dir"]=>
string(25) "/home/sites/php.net"
["shell"]=>
string(13) "/sbin/nologin"
}
]]>
&reftitle.notes;
¬e.no-remote;
¬e.sm.uidcheck;
&reftitle.seealso;
chmod