Table of contents
Create a user and an account
adduser mbubur
Create a Password for user mbubur
passwd mbubur
Adding new user ( mbubur) to the sudo group
usermod -aG sudo mbubur
Switch User from root to mbubur user
su mbubur
Logout from the current user or press "ctrl + d"
exit
Delete User Account
userdel mbubur
Change user login name
usermod -l mbubur devops
Group Management
A group is a collection of users that makes it simple to manage permissions for identical types of work that are allocated to the same group. A group is a collection of users that makes it simple to manage permissions for identical types of work that are assigned to the same group.
Add Group Account
groupadd devops
Check the group account properties
grep devops /etc/group
Checking the group Admin properties
grep devops /etc/gshadow
Add the mbubur to the devops group
gpasswd -a mbubur devops
Add the multiple member to the devops group
gpasswd -M user1 user2 user3
Remove user from the group
gpasswd -d user1 devops
Make user2 as group admin
gpasswd -A user2 devops
For Delete Group
groupdel devops