Open System Services Management and Operations Guide (G06.30+, H06.08+, J06.03+)

userdel Command” (page 212) deletes an existing user or an alias and optionally removes
related files
newusers Command” (page 212) reads a file that contains user or alias names, and their
attributes, to create or update users or aliases
To view full details of the above OSS commands, you can use any of the following methods:
Use the -h option for the command. For example, the following command lists all of the
options for the useradd command:
useradd -h
See the useradd(8), usermod(8), userdel(8), or newusers(8) reference page.
See the latest Open System Services Shell and Utilities Reference Manual.
useradd Command
The useradd command can be used to:
Create a new user
Create an alias for an existing user
Display the current default values for creating a new user or an alias
Change the default values for creating a new user or an alias
IMPORTANT: In the following examples, you must ensure that passwords are entered using a
secure shell connection and in a secure environment so that no one can see the typed information
on the terminal display.
Example 19 useradd Command Create a New User
The following useradd command creates the sdev user with a home directory of /home/users/
dev and a password of SoftDev1.
useradd d /home/users/dev p SoftDev1 sdev
Example 20 useradd Command Create an Alias for an Existing User
The following useradd command creates the sdevUK alias for the sdev user with a password
of SoftDevUK1 and an expiration date of January 31, 2014.
useradd A sdevUK e 20140131 p SoftDevUK1 sdev
Example 21 useradd Command Modify Default Options for New Users
The following useradd command modifies the default base directory for any users created with
future useradd commands.
useradd D b /home/project
usermod Command
The usermod command modifies the attributes of a user or an alias.
User Management Tools on OSS 211