Google News
logo
Linux - Interview Questions
How do you create a user account?
You can use adduser and useradd commands to create a user for the system.

useradd Command : Let’s create a username, “Ron,” and provide a password for accessing the system:
useradd Ron
passwd Ron ?

You can also explore the useradd command’s additional options to modify the new user’s permissions and privileges.

adduser Command : The adduser command is similar to the useradd command, so let’s create a username “Shawn”:
adduser Shawn
passwd Shawn?
Advertisement