Sign inSign up free

1383. Create an Account With Password Ageing

medium 20 XP ~7 minHands-on lab

A contractor joins the payments team. Accounts here follow the site's ID plan and its password policy.

Task

  • Create the group payments with GID 3489.
  • Create the user ravi with UID 2524, a home directory /home/ravi, the shell /bin/bash and payments as a supplementary group.
  • Give ravi a password (any).
  • Their password must expire every 30 days, and they must choose a new one at their first login.
  • The account itself must expire on 2027-06-30.

About this machine

Rocky Linux 9 (binary-compatible with RHEL 9) with no internet access. You are student with passwordless sudo. firewalld, chronyd, tuned, crond, atd and sshd really run, and dnf installs from the offline mirror at http://repo.lab:7080/. The machine never reboots: the grader checks its final state and what the next boot would do (enabled services, permanent firewall rules, the default target), not the commands you typed.

Part of Prepare for the RHCSA. Next step: Let an Operators Group Run Everything Without a Password

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.