DefaultHomeDirectory
Gets or sets the local file system path to the user’s default home directory.
Syntax
string DefaultHomeDirectory {get; set;}
Property value
The text string that defines the default path to the user’s home directory.
Discussion
The only variable permitted is ${user}. The Access Manager console replaces this variable with the user’s UNIX login name when you add a UNIX profile for the user to the zone.
Example
The following code sample illustrates using DefaultHomeDirectory in a script:
... 'Specify the zone you want to work with set objZone = cims.GetZone("zap.org/Program Data/Acme/Zones/default") 'Set zone properties objZone.DefaultHomeDirectory = "/home/${user}" objZone.DefaultShell = "/bin/bash" objZone.NextAvailableUID = zone.NextAvailableUID + 1 objZone.NextAvailableGID = zone.NextAvailableGID + 1 objZone.DefaultHomeDirectory = "/home/${user}" ...