HP-UX System Administrator's Guide: Configuration Management

5. Group Name
Enter the group name. This must start with a letter. The maximum length can be
16 or 255 characters, depending on whether long group names are set. See “Setting
Long User and Group Names” (page 43).
(group field 1)
6. Group ID
Select a numeric group ID.
If you mark Next Available ID, HP SMH will select the next available user
ID after 100 (not the next ID after the current highest ID).
If you mark Specify ID,
a. A space is displayed for you to type in the number.
b. Normally, IDs are expected to be unique (the value for Allow Duplicate
User ID is No).
If you want a duplicate user ID, change the value for Allow Duplicate
User ID to Yes.
(group field 3)
7. Users with this Group as Secondary Group
Scroll through the list of user names and mark those that you want to have this
group as a secondary group.
8. (Optional) Select Preview to see the commands that will add the group. Press OK
to continue.
9. Select Add to add the group or Cancel to quit the process.
Managing Users and Groups with Commands
Automating the Process of Adding a User
When you have several users to add to a system, you can save time by:
Using the HP SMH Template; see “Using a Template to Add a User with Text-Based
HP SMH” (page 55).
Using the useradd Command; see “Using the useradd, usermod, and userdel
Commands” (page 60).
Using the useradd, usermod, and userdel Commands
You can use the useradd command to add users, usermod to modify them, and
userdel to delete them. See the useradd(1M), usermod(1M), and userdel(1M) manpages.
useradd has the form:
/usr/sbin/useradd [option]... username
60 Configuring Users and Groups