Posts tagged ‘id’

Create non privilege user – noname

It is necessary sometime to have the user which will be nobody in the system but still be able to run specific process or software on your Linux system.

Usually some  packages like nginx can create such users, usually called nobody. And you can use this nobody for your purpose. But if you wish to have  non privilege user user with specific name, use the simple command useradd.

For instance to create user userx run the following command: useradd -s /bin/false userx.

Non privilege user create user adduser command

To newly created user try id command:

Non privilege user id check using id command

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.