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?


I haven’t personally used it but I think that is what pam_time is for.
Is this the Github of it: https://github.com/linux-pam/linux-pam ?
Could I pam_time root or something that has a higher rank and a different password then my main user?
You can prevent root login entirely using sudo and no root password.
Of course you could then override your init to give you a root shell, which you could avoid by having a grub and bios password.
But you’d be able to reset the bios password if you have physical access anyway.
looks right