Simple user and password manage in Linux

To add new user in Linux you should have permission to do so. If you are the root user, you can add users into your Linux system.

The command adduser

add user in Linux

In this example I’ve added user1 into Linux system. To check that user exists in the system, type: id username.

user check in Linux

To change password for user, use the command passwd.

user password change linux

To remove user type user type: userdel

delete linux user

In this example user1 was removed, where the –r option means to remove the home folders and files created by/for user.

Leave a Comment.