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?

  • @[email protected]
    link
    fedilink
    -221 month ago

    Do you mean the delay between when you need to re-enter the superuser password?

    I found this via an LLM:

    To change the delay before needing to re-enter your sudo password, follow these steps:

    1. Open the terminal and run:

      sudo visudo
      
    2. Locate the line:

      Defaults env_reset
      
    3. Add the following line below it:

      Defaults timestamp_timeout=<time-in-minutes>
      

      Replace <time-in-minutes> with the desired timeout in minutes (e.g., 30 for 30 minutes). Setting it to 0 requires a password every time, while a negative value disables the timeout entirely.

    • @[email protected]
      link
      fedilink
      English
      191 month ago

      I’m curious, why do people make these comments? If the op wanted an answer from an LLM, they would have asked an LLM…

      • navordar
        link
        fedilink
        31 month ago

        A modern equivalent of let me google that for you, but a more obnoxious one