set_zone_user_field
Use the 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.
Zone type
Classic and hierarchical
Syntax
set_zone_user_field field value
Abbreviation
szuf
Options
This command takes no options.
Arguments
This command takes the following arguments:
Argument | Type | Description |
field |
string |
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. |
value |
|
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. |
Return value
This command returns nothing if it runs successfully.
Examples
The following example sets the current zone user’s UNIX user name to buzz
:
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 aixu1@acme.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
Related commands
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
stdout
the 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:
- delete_zone_user deletes the selected zone user from Active Directory and from memory.
- get_zone_user_field reads a field value from the currently selected zone user.
- save_zone_user saves the selected zone user with its current settings to Active Directory.