Lab Information
As part of the temporary assignment to the Nautilus project, a developer named jim requires access for a limited duration. To ensure smooth access management, a temporary user account with an expiry date is needed. Here's what you need to do:
Create a user named jim on App Server 1 in Stratos Datacenter. Set the expiry date to 2026-12-07, ensuring the user is created in lowercase as per standard protocol.
Lab Solutions
π§ Part 1: Lab Step-by-Step Guidelines (Technical Execution)
πΉ Step 1: Log in to Jump Host
ssh thor@jump_host.stratos.xfusioncorp.com
Password:
mjolnir123
πΉ Step 2: SSH into App Server 1
ssh tony@stapp01.stratos.xfusioncorp.com
Password:
Ir0nM@n
πΉ Step 3: Switch to Root
sudo -i
πΉ Step 4: Create user jim with expiry date
useradd -e 2026-12-07 jim
β οΈ Username must be lowercase as specified: jim
πΉ Step 5: Verify user creation
id jim
πΉ Step 6: Verify expiry date
chage -l jim
Expected output should show:
Account expires : Dec 07, 2026
β Final Checklist
β User jim created
β Created on App Server 1 only
β Username in lowercase
β Expiry date set to 2026-12-07
β Expiry verified with chage -l
π§ Part 2: Simple Step-by-Step Explanation (Beginner Friendly)
πΉ Why set an expiry date?
Temporary project members should not:
Retain access after their assignment
Require manual removal later
Account expiry automates access control.
πΉ What does -e do?
-e stands for expire date.
Format required:
YYYY-MM-DD
So:
-e 2026-12-07
means the account will automatically lock after that date.
πΉ Why verify with chage -l?
chage -l jim displays:
Account expiry
Password aging information
This confirms the lab requirement is met precisely.
π Security Context
Temporary accounts:
Reduce long-term access risk
Prevent forgotten active accounts
Improve compliance and audit readiness
Top comments (0)