Information Technology Reference
In-Depth Information
Modifying an Account Using the admintool Command
To modify a user account, start the
admintool
command if it is not already
active. Display the Users window by selecting Users from the Browse pull-
down menu.
Click the desired account entry and then select Modify from the Edit pull-
down menu. The Modify User window is displayed. Change the fields as
appropriate and click Apply to save the changes.
Deleting an Account Using the admintool Command
To delete a user account, start the
admintool
command if it is not already
active. Display the Users window.
Click the desired account and then select Delete from the Edit pull-down
menu. In the Warning window, select Delete to delete the user account.
Because using the
admintool
command makes creating, modifying, and deleting
user accounts very easy and intuitive, Exam 310-014 concentrates on using the
useradd
,
usermod
, and
userdel
commands for administering user accounts.
Creating an Account Using the useradd Command
The
useradd(1M)
command provides a quick method to add a new user
account. At a minimum, the account name must be specified as a command-
line argument. Table 3.3 lists the command-line arguments supported by the
useradd
command.
Table 3.3
Command-Line Arguments for the useradd Command
Argument
Description
account
Specifies the name of the new user
account
(required).
-A
authorizations
Specifies one or more
authorizations
.
-b
base
Defines a
base
directory. If a home directory (
-d
) is not specified,
the
account
name is added to
base
and used as the home direc-
tory.
-c
comment
Specifies a
comment
that is placed in the comment (
gcos
) field
of the
/etc/passwd
file.
-d
directory
Defines the home
directory
of the account.
-e
date
Specifies the expiration
date
for the account. After the specified
date, the account is disabled.
-f
days
Specifies the maximum number of
days
the account can be inac-
tive before it is disabled.
(continued)