Users, permissions, and processes / Stage 8 of 13 · step 7 of 8
Suspend a user account
Not running
Starting
Situation
An employee who worked under the labpaused account is handing over their duties. Until the
handover is done, the account has to be suspended: no one may log in to it, either with the
password or with an SSH key. Deleting it is premature — the home directory holds handover notes,
and a background process of labpaused has been agreed to keep running until the handover ends.
Task
- The
labpausedpassword is locked, and the password itself is neither deleted nor replaced: access must be restorable. - The account has expired — its end date is in the past.
- The login shell is
/usr/sbin/nologin, and the home directory in the record is unchanged. - The key from
/home/labpaused/.ssh/authorized_keysno longer works: there's no active key file, and an exact copy of it sits in/srv/account-review/authorized_keys.saved, readable by root only (ownerroot:root, mode600). - The home directory,
.sshandnotes.txtare in place with their original owner and mode, andnotes.txtis unchanged; other accounts,sudoand SSH settings are untouched. - The background process of
labpausedkeeps running — the same one that was started.
Constraints
- Don't delete the account and don't kill
labpaused's processes. - Account changes need
sudo.
The tools you need are already installed. There's no internet on this machine.
Lab goals
0 of 6-
labpaused's password is locked and the original one is kept — not checked yet
-
The account has expired — its end date is in the past — not checked yet
-
The login shell is /usr/sbin/nologin and the home directory is unchanged — not checked yet
-
The key from authorized_keys no longer works and its copy is readable by root only — not checked yet
-
The home directory, .ssh and notes.txt are kept; other accounts and settings are untouched — not checked yet
-
The original background process of labpaused keeps running — not checked yet
Hints
0 of 3 open · they open one at a time
Hint 1
Show the solution
after 3 failed checks