Skip to main content
Image

r/linux


I wrote a systemd unit for logging the kids out at night
I wrote a systemd unit for logging the kids out at night

For parents who have kids that game til 3am, I made a systemd unit to lock the kid out at 22:00 until 6:30.

We have a 12-yo gamer that regularly sneaks back onto his PC at night and is completely time blind. This timer unit will disable the user and log him out at 22:00 and even if he switches off the pc before then and tries to go on after the timer it will run 1 min after boot, it will also unlock the user at 06:30 using the same trick so no knocks on the door at 7am on a weekend 🤣

You can get the repo at my GitHub, it's FOSS under MIT license so go fork it yourself to make changes to the time👌


Advertisement: iPhone 18 Pro | Pro further
iPhone 18 Pro | Pro further
media poster


Happy 35th Birthday Linux
Happy 35th Birthday Linux
Image r/linux - Happy 35th Birthday Linux