Syntax

chown USERID, GROUPID, LIST


Definition and Usage

Changes the owner (and group) of a list of files. The first two elements of the list must be the numeric uid and gid, in that order. This funcation call works in similar way as unix commandchown. Thus you should have sufficient privilege to change the permission of the file.

Return Value

  • Returns the number of files successfully changed.

Example

Here is an example which will change ownership for the given number of files.

What Do You Think on This ? Say Here