Mono Class Library: Mono.Unix.UnixUserInfo Overview | Members

Mono.Unix.UnixUserInfo.GroupId Property

Gets the user's group id.

public long GroupId { get; }

See Also

Mono.Unix.Native.Passwd.pw_gid

Value

A long containing the users's group id.

Remarks

Access to file system objects (as represented by Mono.Unix.UnixFileSystemInfo) is controlled by the file system access permissions, UnixFileSystemInfo.FileAccessPermissions. Mono.Unix.FileAccessPermissions is a nine-bit field specifying read, write, and execute access for the owner, group, and everyone else (other).

Access by the file's owner group is controlled by the bits specified by (UnixFileSystemInfo.FileAccessPermissions & FileAccessPermissions.GroupReadWriteExecute). All group members get these access permissions, except for the file's owner (if they belong to the file's owner group).

Requirements

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