Final task: prepare a secure account and folder for a new employee
You combine everything from the course in one work order: prepare an account, password rules and group membership for a new analyst, set up the team’s project folder with the right ownership and permissions, close a leaver’s account, test everything as other users and write the handover report. No commands are given; the work order differs in every lab.
Level 101 · 50 min
This is the course’s last task. Tomorrow a new analyst starts in the finance team: Selin Aydın. Someone leaves the team the same day. Daniel left you a work order: /srv/hr/work-order.txt.
The project folder’s name, the password age, the temporary password and the leaver in the work order differ in every lab; you can’t copy someone else’s answer. Read the work order in the first step; the later steps give no commands, only a reminder of the relevant item of the work order.
If you get stuck, going back to earlier lessons is allowed; at work everyone takes notes and checks the docs too. After two wrong tries the solution appears, but try yourself first: this is the course’s real exam.
What you will do in this lesson
- Read the work order
- 1. The account
- 2. Password and its rules
- 3. Group membership
- 4. The project folder
- 5. The leaver
- 6. Test
- 7. The handover report
- Short quiz
Skills you will earn
- Reading files with cat
- Creating an account with a home directory (useradd -m -s -c)
- Setting a password and reading its hash in shadow
- Forcing a password change at first login (chage -d 0)
- Setting password-age rules (chage -M, -W)
- Adding a user to a group safely (usermod -aG)
- Setting group inheritance in a team directory with setgid (2770)
- Changing a file’s group (chgrp)
- Locking an account before deleting it (usermod -L, passwd -S)
- Closing a leaver’s account (userdel -r)
- Archiving files (tar czf)
- Testing a setting as another user (su -c)
- Running a command as another user without a password prompt (runuser)
- Redirecting output to a file with > and >>
- Writing a short, precise finding
← Borrowing admin rights with sudo · Linux quick start
Start for free