Mono Class Library: Mono.Posix.Syscall Overview | MembersMono.Posix.Syscall.chown Method |
Change owner for a file or folder. [Edit]
|
a int. On success, zero is returned. On error, -1 is returned and System.Runtime.InteropServices.Marshal.GetLastWin32Error is set. [Edit]
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]
Namespace: Mono.Posix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0