Add & Delete Users in Linux
We can easily add/delete users in Linux using `useradd`, `userdel` commands.
Add Users
We can use useradd
or adduser
command to add users in Linux.
Set Password for User
Delete Users
We can use userdel
or deluser
command to delete users in Linux.
List Users in Linux
To list users exist in Linux, run the following commands.
Allow Users to Run Commands as Root Privilege
Add users to the “sudo” group.
Last updated