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?


Not a direct answer for you, but a different approach.
Psychologically the carrot is better than the stick, meaning you’ll keep fighting the lock-out mechanism, eventually resenting it and removing it.
Having an alert to remind you that you wanted to stop will be more pursuasive. (I have a “go to bed” alarm with a gentle, gradually increasing volume on my phone)
What’s even better is tying a habit you want (eating, going to bed, etc) into another habit which already exists, but obviously, I don’t know you well enough to suggest anything specific, but perhaps something else happens near those times you want to stop and that’ll help?