#day9 Linux Advance [User Management/Group Management/sudoers]
Table of contents
How to create a user and user group?
Password Setting for User:
Switch User:
Group Management:
You need to create group first
How to check the group :
During the creation of users considering the user itself is an individual group :
shubham-devops:x:1004: =====This user itself consider as a individual group
shubham-devops:x:1004:===== This user itself consider as an individual group
devops:x:1005: ======== This is group
Adding shubham-dev to the DevOps group:
Adding a single user to a group by using "-a "(appending)
Adding multiple users to a group at one time by "-M" (Multiple users) by overwrites
Use case for adding users to the particular group :
*If u are in a group you can't go to another user account without permission.But you can access the particular file on that group.*
SUDOERS :
Sudoers is a (superuser do) configuration file but also a group. which is having the same permission as the root user.
Giving admin access to the DevOps group.Which includes users like shubham-devops,shubham-dev, and ubuntu.