1 May 2002
gfs_chown 3 Gfarm
gfs_chown change ownership of a file

    #include <gfarm/gfarm.h>

`char *gfs_chown` char * gfarm_url char * user char * group

## DESCRIPTION

The owner of the file specified by gfarm_url is changed.

## RETURN VALUES

`NULL`

  The function terminated successfully.

`GFARM_ERR_NO_MEMORY`

  Insufficient memory was available.

`GFARM_ERR_AUTHENTICATION`

  User authentication failed when connecting to gfmd(8) or gfsd(8).

`GFARM_ERR_PERMISSION_DENIED`

  gfarm_url points outside your accessible address space.

`GFARM_ERR_OPERATION_NOT_PERMITTED`

  The effective UID does not match the owner of the file, and is not zero.

`GFARM_ERR_NO_SUCH_OBJECT`

  The file does not exist.

`GFARM_ERR_NOT_A_DIRECTORY`

  A component of the path prefix is not a directory.

Others

  An error except the above occurred. The reason is shown by its pointed strings.