User management in Linux involves creating, modifying, and deleting user accounts, as well as managing user permissions and groups.

# useraddWill create user without home directory
# adduserwill create user with home directory
# passwd usernamewill set password for specific user & change password also
# userdel usernamewill delete the username without home directory
# userdel -r usernamewill delete the username with home directory
# cat /etc/passwdto show all the user details
# usermod -ag groupname usernameto add a user to a group
# su – usernamecommand is used to switch to another user account
# groups usernamecommand is used to display the groups a user belongs to
# ls /homewill show all the users home directory
#sudo -sto change root account

Leave a comment

Previous Post
Next Post

Recent posts

Quote of the week

in learning you will teach and in teaching you will learn

~ Phil Collins
Design a site like this with WordPress.com
Get started