35
submitted 1 day ago by Remy@lemmy.today to c/linux@lemmy.ml

Hello,

I am looking for a program that can force me to stop using Linux when I need to do something else, like eating dinner or going to bed.

This time enforcement could be as simple as changing the user password and then logging me out at a certain time (of course it should also change the password back later)

It should also require a password (different from the user password) to change its settings or uninstall it, so that I can't tamper with it in a weak moment.

Is there such a program for Linux?

you are viewing a single comment's thread
view the rest of the comments
[-] sudoer777@lemmy.ml 5 points 1 day ago

Pipe /dev/random to passwd for your user and put it in a chron job, then have another chron job that echos your original password back

[-] JamesBoeing737MAX@sopuli.xyz 4 points 20 hours ago

That sounds like a great way to permanently lock yourself out.

[-] communism@lemmy.ml 3 points 19 hours ago

It wouldn't permanently lock you out if it failed because you can boot into a live ISO to change your password back if it fails to change it back to your original password.

this post was submitted on 30 Jul 2026
35 points (100.0% liked)

Linux

66725 readers
338 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS