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?

    • Rioting Pacifist@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      3 days ago

      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.

      • Remy@lemmy.todayOP
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        As I only use sudo to update my system, I could use a user that doesn’t has sudo access and set up some a cron job to do updates once a day. And flatpak instalation and updating doesn’t require sudo at all