mowglixx/linux-parental-controls

Just a simple systemd unit to log off the kids at 22:00 until 06:30

Shell

32

3 commits

updated Sep 13, 2026

See the code

See what people are saying (1)

README

Linux bedtime script

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

Installation

run the following to install the service:

chmod +x ./install.sh
sudo ./install.sh

Usage

Reload systemd to recognize the new files, then enable and start the timer:

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

How to Verify the service is running

  1. Check timer status and upcoming execution times:
sudo systemctl status user-access@USERNAME.timer

  1. Manually test the service execution (without waiting for the timer):
sudo systemctl start user-access.service

  1. Inspect the status of the user user password lock:
sudo passwd -S user

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

Contributors

mowglixx

3 commits

mowglixx/linux-parental-controls

Just a simple systemd unit to log off the kids at 22:00 until 06:30

Shell

32

3 commits

updated Sep 13, 2026

See the code

See what people are saying (1)

README

Linux bedtime script

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

Installation

run the following to install the service:

chmod +x ./install.sh
sudo ./install.sh

Usage

Reload systemd to recognize the new files, then enable and start the timer:

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

How to Verify the service is running

  1. Check timer status and upcoming execution times:
sudo systemctl status user-access@USERNAME.timer

  1. Manually test the service execution (without waiting for the timer):
sudo systemctl start user-access.service

  1. Inspect the status of the user user password lock:
sudo passwd -S user

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

Contributors

mowglixx

3 commits

Languages

Shell

100.0%