Creating & Deleting Users


Creating User Accounts
To create a user account from a shell prompt Open a shell prompt. If you are not logged in as root, type the command su – and enter the root password. Type useradd followed by a space and the username for the new account you are creating at the command line.

Rhel6_add_new_user

Launch Userconf
Choose Users Accounts & Press Enter
Click Add Button
Fill the Parameters Fields
Click Accept Button
Changing Password
Type Desired Password & Click Accept Button
Confirm the Password & Click Accept Button
Click Quit Button

Useradd Command
Useradd creates a new user or sets the default information for new users.

Syntax
useradd [options] Login
useradd -D [options]

Description
Useradd is a low-level utility for adding users to a system.

Command
useradd -d home

Options

Deleting User Accounts
The userdel command deletes a user account, The userdel command modifies the system account files, deleting all entries that refer to the user name LOGIN. The named user must exist.

ULDeleteUserDirectory.gif

Launch Userconf
Choose User Accounts & Click User Accounts
Select you want to delete & Press Enter
To Delete Account, Click the Delete Button
Delete the Account Data
Click the Accept Button

Userdel Command
userdel command deletes a user account and all associated files.

Syntax
userdel [options] Login

Description
The userdel command modifies the system account files, deleting all entries that refer to the user name LOGIN. The named user must exist.

Command
userdel temp
userdel -r temp

Userdel Options.png

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s