4

I update my Arch-Linux system using yaourt. When updating packages from the AUR, yaourt doesn't allow itself to be run as root, so it instead asks for sudo privileges every time it installs / updates a package. I don't mind this too much, however if I don't notice my terminal asking for my sudo password, it might be a few minutes until I check and notice it. When this happens, even though I type my password in correctly, I get an authentication error message, and it asks for my password again a few times, even though it still wouldn't work.

So my question is: how can I disable the sudo password prompt from timing out?

1

1 Answer 1

3

Look at the sudoers manual on your system, and search for the password_timeout setting (the timeout for the password prompt) and timestamp_timeout setting (how long until you will be asked for a password after having used sudo successfully). The manual on your system will mention the default timeouts that your system uses.

The default on Ubuntu is documented as 15 minutes for timestamp_timeout and 0 (no timeout) for password_timeout, but your system probably has another password_timeout. On FreeBSD and Alpine Linux, it's by default 5 minutes for both, for example, according to the sudoers manual on those systems.

1
  • 1
    Adding this to my sudoers file fixed the problem. Thank you! Defaults passwd_timeout = 0 Commented Feb 8, 2017 at 13:57

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.