Is there a way to require a user to wait a certain time instead of asking for a password every time he wants to execute a command as root or access the root / or another user account?

  • Peter G
    link
    fedilink
    -78 days ago

    This would literally render sudo utterly useless. Sudo is meant to require password to accomplish admin tasks. In your scenario anyone using your computer can do anything without knowing the password.

    • @Hawke@lemmy.world
      link
      fedilink
      78 days ago

      This is not entirely accurate; there are plenty of times when sudo does not require a password even in the default config. And there’s the nopasswd option built-in already which would already do that portion of this request.

      It sounds like the OP wants to use sudo as a Molly-guard. There’s nothing wrong with that, although it may not be the right tool for the job.

      • @mina86@lemmy.wtf
        link
        fedilink
        English
        2
        edit-2
        7 days ago

        Having to type sudo already acts as a molly-guard. Whatever OP wants to do I won’t stop them, but they are doing something strange.

        • enkers
          link
          fedilink
          28 days ago

          While I pretty much agree, I can definitely think of a few sporadic times doing sysadmin where things have gone so significantly wrong that an enforced sanity-check on every sudo command would have been appreciated.

      • Peter G
        link
        fedilink
        28 days ago

        There are plenty of ways to configure Linux to circumvent sudo. I’ve even seen people who log in as root by default. I do not, however, advise anyone to do that even if it’s just, as you put it, a Molly Guard. It has prevented me personally from doing catastrophic things to my system on a number of occasions.