HP-UX System Administrator's Guide: Configuration Management

Using a Template to Add a User with Text-Based HP SMH
Use this procedure to add a new user with the assistance of an HP SMH user template.
If you need to define a template, go to the procedure at “Making User Templates with
Text-Based HP SMH” (page 55), then return here.
1. Start HP SMH, as described in “Starting Text-Based HP SMH” (page 30).
2. Press u to select Accounts for Users and Groups.
3. Press t to select Templates. (If there is no template, go to “Making User Templates
with Text-Based HP SMH” (page 55)).
4. Highlight a template name and press s to select it.
5. Press Esc to return to the previous menu.
6. Press l to select Local Users or n to select NIS Users.
7. Press a to select Add User. The fields that are not predefined by the template are
displayed.
8. Enter the users Login Name.
This must start with a letter and be up to either 8 or 254 characters long, depending
on whether long user and group names is set. See “Setting Long User and Group
Names” (page 43).
9. If the User ID field is displayed, enter a numeric user ID.
a. A space is displayed for you to type in the number.
b. Normally, IDs are unique (the value for Allow Duplicate UID is No). If you
want a duplicate user ID, select Yes.
If the field is not displayed, HP SMH selects the next available user ID after 100
(not after the highest current ID).
10. Enter comma-separated information in the Comments field. See Step 11 in Adding
a User with Text-Based HP SMH” for details.
11. (Optional) Select Preview to see the commands that will create the account. Press
OK to continue.
12. Select Add to create the account or Cancel to quit the process.
13. If the template requires a password, enter a password in the password dialog. See
Step 16 in Adding a User with Text-Based HP SMH” for details.
14. HP SMH creates the user account. See Step 17 in Adding a User with Text-Based
HP SMH” for details.
15. When the process completes, you are returned to the Local Users or NIS Users
listing.
Making User Templates with Text-Based HP SMH
A template is a way to predefine the contents of most of the fields of a user account so
many user accounts with the same parameters can be created with the fewest steps.
Configuring Users and Groups with HP SMH 55