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

Mono.Unix.UnixEnvironment.GetUserShells Method

Gets all user shells.

public static string[] GetUserShells ()

See Also

Mono.Unix.Native.Syscall.setusershell
Mono.Unix.Native.Syscall.getusershell
Mono.Unix.Native.Syscall.endusershell

Returns

A string array containing all user shells on the system.

Remarks

A user shell is defined by the system manager in the shells database as described in shells(5) (frequently the file /etc/shells). If the shells database is not available, then this returns an array containing the elements /bin/sh and /bin/csh.

Requirements

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