User Management Lab

Create User Accounts

Learn to create, modify, and manage user accounts on Linux and Windows — fundamental skills for system administration and security.

Lab Instructions

Step 1: View Existing Users

List all users on the system:

cat /etc/passwd

Step 2: Create a New User

Create a user named "socanalyst":

sudo useradd -m -s /bin/bash socanalyst

Step 3: Set Password

Set password for the new user:

sudo passwd socanalyst

Step 4: Add to Group

Add user to the sudo group:

sudo usermod -aG sudo socanalyst

Step 5: Verify User

Check the user was created:

id socanalyst

Step 6: View Groups

List all groups the user belongs to:

groups socanalyst
root@soc-server: ~
User Management Lab - Simulated Environment Practice creating and managing user accounts.
root@soc:~#

Challenges

✓ View the list of users on the system
✓ Create a new user account
✓ Add the user to an administrative group
✓ Verify the user's group membership

Lab Complete!

You've mastered user account management on both Linux and Windows. These skills are essential for incident response (disabling compromised accounts) and system hardening.

← Return to Week 1