set_zone_user_field command to set the value for a specified field in the currently selected zone user stored in memory. The
set_zone_user_field command does not set a field value stored in Active Directory for this zone user.
If you use ADEdit to change any field, you must save the zone user using the save_zone_user command for your changes to take effect in Active Directory. If you select another zone user or end the ADEdit session before saving the currently selected zone user, your changes will be lost.
Classic and hierarchical
set_zone_user_field field value
This command takes no options.
This command takes the following arguments:
Required. Specifies the name of the field y want set. The possible values are:
You can also specify AIX extended attributes as the field to set an extended attribute value for a zone user.
Required. Specifies the value to assign to the specified field. The data type depends on the field specified.
In some cases, you can assign a dash (-) to a field to unset the field value. However, this is not supported for all fields or all zone types.
This command returns nothing if it runs successfully.
The following example sets the current zone user’s UNIX user name to
set_zone_user_field uname buzz
This following example sets the current zone user’s primary GID to the same value as the user’s UID:
set_zone_user_field gid 0x80000000
If the current zone user is on AIX, you can set extended attributes and values. For example:
select_zone_user email@example.com set_zone_user_field aix.ttys u1,u2,u3 set_zone_user_field aix.fsize 209715 set_zone_user_field aix.core 2097151 set_zone_user_field aix.cpu -1 save_zone_user
Before you use this command, you must have a currently selected zone stored in memory. The following commands enable you to view and select a zone user:
- get_zone_users returns a Tcl list of the Active Directory names of all zone users in the current zone.
- list_zone_users lists to
stdoutthe zone users and their NSS data in the current zone.
- new_zone_user creates a new zone user and stores it in memory.
- select_zone_user retrieves a zone user from Active Directory and stores it in memory.
After you have a zone user stored in memory, you can use the following commands to work with that zone user: