Answers for "how to remove the user in linux"

0

add and remove users in linux

#to add a user
sudo useradd <username>

#to remove a user
sudo userdel <username>

#to check for users
cat /etc/passwd

#to check for groups
cat /etc/group

#to assign a password to a user
sudo passwd <username>
  
#to allow the user login without username
sudo passwd -d <username>
Posted by: Guest on March-10-2022

Code answers related to "how to remove the user in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language