User Administration (useradd & passwd)
Concept & Overview
So far, you've been working as the learner user. But in real-world servers, sysadmins must manage multiple accounts. Let's learn how to add new users and set their passwords.
- The useradd command creates a brand new user account. Since creating accounts affects system security, it must be run with superuser privileges (e.g. sudo useradd deployer).
- The passwd command sets or changes a user's password. Run as sudo passwd deployer to set the deployer user's password.
deployer by running sudo useradd deployer. Then, set a password for them by running sudo passwd deployer (type any mock password when prompted).Command Syntax Reference
| Command / Syntax | Description |
|---|---|
sudo useradd deployer | Create new user deployer |
sudo passwd deployer | Set password for user deployer |
Verification Objectives
These conditions will be automatically verified when you run commands inside the interactive terminal simulator:
- ○Create user "deployer" using useradd
- ○Set password for "deployer" using passwd
Ready to complete Quest 133?
Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.