Linux Users

User management includes everything from creating a user to deleting a user on your system. User management can be done in two ways on a Linux system.

Graphical tools are easy and suitable for new users, as it makes sure you’ll not run into any trouble.

Command line tools includes commands like useradd, userdel, passwd, etc. These are mostly used by the server administrators.

  1. useradd username
  2. passwd username

Accessing a user configuration file-

 cat /etc/passwd

Command to Modify the group ID of a user-

usermod -g  new_group_id username

Delete User-

User is deleted hence no reference found for the user Shyam

===============================================================================

Linux Groups-

The groupadd command creates or add a group in our system.

groupadd <groupName>  

groupadd DevOps

Group File-

The /etc/group file defines the group membership. A user can be a member of more than one group.

==========================================================================

Gruopdel –

The command groupdel will delete a group permanently from the system.

groupdel <group> 

File /etc/gshadow keeps the information about the group administrators as shown in below snapshot.

Leave a Reply

Your email address will not be published. Required fields are marked *

WhatsApp
Inquiry Now