Adding and Removing Users with useradd usermod and userdel

Linux also provides the useradd, usermod, and userdel commands to manage user accounts. All these commands take in all their information as options on the command line. If an option is not specified, they use predetermined default values. These are command line operations. To use them on your desktop you first need to open a terminal window (right-click on the desktop and select Open Terminal), and then enter the commands at the shell prompt.

If you are using a desktop interface with Red Hat and Fedora distributions, you should use the system-config-users to manage user accounts (see Chapter 4). You can access system-config-users from the System | Administration | Users and Groups menu entry. It is labeled simply as Users and Groups. Table 28-3 lists the user management tools.

Tool

Description

system-config-users

Fedora desktop tool for adding, removing, and modifying users and groups, see Chapter 4 (System | Administration | Users and Groups)

Kuser

K Dekstop tool for adding, removing, and modifying users and groups

useradd username options

Add a user

userdel username

Delete a user

usermod username options

Modify a user properties

groupadd groupname options

Add a group

groupdel groupname

Delete a group

groupmod groupname options

Modify a group name

Table 28-3 User and Group Managment Tools

Table 28-3 User and Group Managment Tools

0 0

Post a comment