About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/chown.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 chown Context: slangrtl

Synopsis

Change the owner of a file

Syntax

Integer_Type chown (String_Type file, Integer_Type uid, Integer_Type
gid)

Description

The chown function is used to change the user-id and group-id of file to uid and gid, respectively. It returns zero upon success and -1 upon failure, with errno set accordingly.

On most systems, only the super user can change the ownership of a file.

Some systems do not support this function.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.