Mono Class Library: Mono.Posix.Syscall Overview | Members

Mono.Posix.Syscall.chown Method

Change owner for a file or folder. [Edit]

public static int chown (string path, int owner, int group)

See Also

Mono.Unix.Native.Syscall.chown

Parameters

path
a string [Edit]
owner
a int representing owner UID. [Edit]
group
a int representing Group GID [Edit]

Returns

a int. On success, zero is returned. On error, -1 is returned and System.Runtime.InteropServices.Marshal.GetLastWin32Error is set. [Edit]

Remarks

This member is obsolete. Please use Mono.Unix.Native.Syscall.chown instead.

The owner of the file specified by path is changed. Only the super-user may change the owner of a file. The owner of a file may change the group of the file to any group of which that owner is a member. The super-user may change the group arbitrarily. See 'man chown(2)' for more information and error codes.

[Edit]

Requirements

Namespace: Mono.Posix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0