The following script was written to log out the kids at night

run the following to install the service:

chmod +x ./install.sh

sudo ./install.shReload systemd to recognize the new files, then enable and start the timer:

sudo systemctl daemon-reload

sudo systemctl enable --now user-access@USERNAME.timer

- Check timer status and upcoming execution times:

sudo systemctl status user-access@USERNAME.timer

- Manually test the service execution (without waiting for the timer):

sudo systemctl start user-access.service

- Inspect the status of the user user password lock:

sudo passwd -S user

(A status of L indicates locked, P indicates usable password).