Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This will probably be a short and informative question.

All the time I have heard and seen people talking about how you can customize sudo so you can adjust the 15 min reset, and add a custom query for the password. I myself would like to know how, and do this(At least on debian based systems). I have DuckDuckGo'd it and I couldn't find anything except the "Sudoers File" in /etc/sudoers, which I haven't found a way to adjust or configure anything from there.

Can anyone tell me the file or where I can configure these settings?

share|improve this question
Take a look at this: – Mitch Jul 25 '12 at 16:39
Possible duplicate?… – user76204 Jul 25 '12 at 16:39
up vote 1 down vote accepted

If you check man sudoers it states that the timeout can be changed by changing the timestamp_timeout variable.

In /etc/sudoers, add this line:

Defaults rootpw

in order that the default password is the root password and not the user password.

share|improve this answer
Well @mutzmatron I have looked into the manual pages.(That is usually the first thing I do...) but I would also like to know where I can customize the prompt for Sys Admin password, and make it ask for root password instead of user... – TenorB Jul 25 '12 at 16:45
That aspect of your question is answered here:…, I'll add in the main part... – jmetz Jul 25 '12 at 16:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.