Modifying User Accounts


Modifying User Accounts :
———————–
Modifies a user account.

1) Launch Userconf
2) Choose User Accounts & Click User Accounts
3) Modify & Press Enter
4) Modify the Fields
5) Click Accept Button

Capture

Name :
—-
usermod –> modify a user account

Usermod Command :
—————
The usermod command lets you modify an existing user account.

Syn :

usermod [options] LOGIN

Description :
———–
The usermod command modifies the system account files to reflect the changes that are specified on the command line.

Cmd :

usermod -d home
usermod -l home

Chfn Command :
————
The chfn command change the full name associated with a user account.

Cmd :

chfn user

Chsh Commands :
————-
The chsh command change the command interpreter associated with user account.

Cmd :

chsh -s shell user

usermod options

Usermod Files :
————-
/etc/group       –> Group account information.
/etc/gshadow   –> Secure group account information.
/etc/login.defs –> Shadow password suite configuration.
/etc/passwd     –> User account information.
/etc/shadow     –> Secure user account information.

Advertisements

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

User & Group Administration


User & Group Administration :
—————————
User Accounts :
————-
/etc/passwd file defines linux user accounts. each file in the file describe a single user.

etc_passwd

root:x:0:0:root:/root:/bin/bash

bin:x:1:1:bin:/bin

daemon:x:2:2:daemon:/sbin

Fields :
——
1) Username
2) Password
3) UserID
4) GroupID
5) Fullname
6) Home Directory
7) Shell

User Accounts Via Userconf Tool :
——————————-
To administer user accounts via userconf tool automatically.

Cmd :

userconf

Linux conf configuration program provides another way userconf.

Cmd :

linuxconf

1) Config
2) Users accounts from linuxconf