466
|
1 <refentry id="chown">
|
|
2 <refnamediv>
|
468
|
3 <refname>Chown</refname>
|
|
4 <refpurpose>change the ownership of a file</refpurpose>
|
466
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <funcsynopsis>
|
|
9 <funcprototype>
|
|
10 <funcdef><function>chown</function></funcdef>
|
570
|
11 <paramdef>char *<parameter>fname</parameter></paramdef>
|
|
12 <paramdef>int <parameter>ownerid</parameter></paramdef>
|
466
|
13 </funcprototype>
|
|
14 </funcsynopsis>
|
|
15
|
|
16 </refsynopsisdiv>
|
|
17
|
|
18 <refsect1><title>Description</title>
|
|
19 <para>
|
594
|
20 This call is available only to the super user. "Fname" is a
|
|
21 pointer to a file name, and "ownerid" is the new user-id.
|
466
|
22 </para>
|
|
23 </refsect1>
|
552
|
24 <refsect1><title>Diagnostics</title>
|
|
25 <para>
|
|
26 Zero is returned from a successful call. -1 is returned from on error.
|
|
27 </para>
|
|
28 </refsect1>
|
|
29
|
466
|
30 </refentry>
|