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?

  • sudoer777@lemmy.ml
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 days ago

    Pipe /dev/random to passwd for your user and put it in a chron job, then have another chron job that echos your original password back

    • TerraRoot@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      9 hours ago

      This 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.

      • communism@lemmy.ml
        link
        fedilink
        arrow-up
        4
        ·
        2 days ago

        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.