chown

Changes the owner user identification code (UIC) of the file.

Format

#include  <unistd.h>

int chown  (const char *file_spec, uid_t owner,
           gid_t group); (ISO
           POSIX-1)

int chown  (const char *file_spec, unsigned int
           owner, unsigned int group); (Compatability)

Arguments

file_spec
The address of an ASCII file name.
owner
An integer corresponding to the new owner UIC of the file.
group
An integer corresponding to the group UIC of the file.

Return Values
Indicates success. 
-1  Indicates failure. 


Previous Page | Next Page | Table of Contents | Index