lchown


Description:

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

change file owner and group

Change the file owner to owner and group to group. This is like chown but if path is a symlink then the link itself is changed, not the target.

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