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
[–] [S] 1 point 3 months ago (2 children)

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?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 3 months ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment
  • [–] [S] 1 point 3 months 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

  • source
  • parent