AvailableShells

Gets or sets the list of available shells for this zone.

Syntax

string[ ] AvailableShells {get; set;}

Property value

The list of available shells for the zone.

Discussion

The values you define for this property are used as the values in the drop-down list of available shells when defining the UNIX profile for a new user in the Access Manager console.

This property requires a strongly-typed array. Because strongly-typed arrays are not supported in VBScript, you cannot use this property in scripts written with VBScript. To use this property, you must use a programming language that allows strongly-typed arrays.

Example

The following code sample illustrates setting this property in a Visual Studio (C#) script:

...  
// Set the Active Directory container object.
DirectoryEntry objContainer = new
DirectoryEntry("LDAP://cn=Zones,cn=UNIX,dc=ajax,dc=org");  
IZone objZone = cims.CreateZone(objContainer, “QA Zone”);  

// set the starting UID and GID for the zone
objZone.NextAvailableUID = 10000;  
objZone.NextAvailableGID = 10000;  

// set the list of available shells and default shell for the zone
objZone.AvailableShells = new string[] {"/bin/bash", "/bin/shell"};  
objZone.DefaultShell = "/bin/bash";  

// set the default home directory for the zone
objZone.DefaultHomeDirectory = "/home/\${user}";  
objZone.Commit();  
Console.WriteLine("Zone created successfully.");  
...