$
Learn Linux handbook
en
XP:0
Quest 133Sys-Creator
+220 XP

User Administration (useradd & passwd)

Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser

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.

Let's add a colleague's account. Create a new user named 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 / SyntaxDescription
sudo useradd deployerCreate new user deployer
sudo passwd deployerSet 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.