Skip to main content

Lab 001: Create a User


Lab 001: Create a User

Requirements

Create a user named mariyam on App Server 2 in Stratos Datacenter. Set UID to 3120 and its home directory to /var/www/mariyam.


Note

This lab focuses on creating a Linux user with specific UID and home directory settings.

Prerequisites

  • SSH access to App Server 2 with root or sudo privileges.
  • User management tools available (useradd, id, grep).

Steps

Login to the app server and switch to root. For the server credentials, check out the Project Nautilus documentation.

sshpass -p '**********' ssh -o StrictHostKeyChecking=no steve@172.16.238.11
sudo su -
**********

Create the user based on the requirements.

useradd -u 3120 -d /var/www/mariyam mariyam

Verify.

id mariyam
grep mariyam /etc/passwd

Verification

  • Confirm user mariyam exists with id mariyam.
  • Confirm UID is 3120 with grep mariyam /etc/passwd.
  • Confirm home directory is /var/www/mariyam.

Resources