As you know all the configurations in Linux stored as text file, The text file which contains User information is:

/etc/passwd

`

In this tutorial we are going to cover:

1- Creating a user
2- Deleting a user
3- Changing password for specific user

1- How to add a user in Linux ?

With below command a user can be created in Linux system.

sudo adduser <sername>

Example

sudo adduser broexperts

 

2 – How to Delete a user in Linux ?

with a simple command you can delete a user in Linux.

sudo userdel <username>

Example

sudo userdel broexperts

 

3 – How to change a user password in Linux ?

Change your Password

sudo passwd <username>

Example

sudo passwd broexperts

 

It will bring up a prompt asking “please type a password and confirm password”

Similar Posts