Introduction
The Linux command adduser -p password john is used to create a new user account with the username “john” and the password “password”. This command is useful for setting up new user accounts on a Linux system, allowing users to access the system with their own credentials. It is also useful for setting up user accounts with specific permissions and access levels.
Examples
The command to add a user named “john” with a password of “password” is:
adduser -p password john
The adduser
command is used to add a new user to a Linux system. The -p
option is used to set the user’s password. To add a user named “john” with the password “password”, the command would be:
adduser -p password john
This command will create a new user account with the username “john” and the password “password”. The user will be added to the system and will be able to log in with the provided credentials.