chown


Description:

[ Version ( since = "0.8" ) ]
public bool chown (int32 owner, int32 group, string path) throws Error

change file owner and group

Change the file owner to owner and group to group.

Only numeric uid and gid are supported. If you want to use names, you will need to locate and parse the password file yourself (Augeas support makes this relatively easy).

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error