
4.Service User Creation without Home Directory
Lab Information In response to the latest tool implementation at xFusionCorp Industries, the system admins require the creation of a service user account. Here are the specifics: Create a user named ammar in App Server 1 without a home directory. 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 ammar without a home directory useradd -M ammar 🔹 Step 5: Verify the user exists id ammar 🔹 Step 6: Confirm no home directory was created ls -ld /home/ammar Expected result: No such file or directory Also verify in passwd file: grep ammar /etc/passwd You should see a home path listed (usually /home/ammar), but the directory itself should NOT exist. ✅ Final Checklist ✔ User ammar created ✔ Created on App Server 1 only ✔ No home director
Continue reading on Dev.to
Opens in a new tab

