Shell

Gets or sets the default shell for the user.

Syntax

string Shell {get; set;}

Property value

A string that defines the path to the default shell for the user from the user’s UNIX profile.

Example

The following code sample illustrates using Shell in a script:

...  
'Get the zone object  
Set objZone = cims.GetZone("ajax.org/UNIX/Zones/pilot")  
'Get the Active Directory user object  
set objUser = cims.GetUser("ajax.org/Users/pat.hu")  
'Get the UNIX profile for the user  
profile = objUser.UnixProfileByUid(10001)  
'Change the default shell in the user’s UNIX profile  
set profile.Shell = “bin/sh”  
...