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?


Pipe
/dev/randomtopasswdfor your user and put it in a chron job, then have another chron job that echos your original password backThis is the way i’d do it, no warning or i’d be tempted to go and change the job. Also test on a new temp user unless OP is chad level script writer.
That sounds like a great way to permanently lock yourself out.
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.