Xubuntu question
Go to solution
Solved by MikeD,
'$ sudo visudo' (or '$ sudo EDITOR=/bin/nano visudo' if you don't like vim)
Add a line like
'Defaults timestamp_timeout=<minutes>'
If you are talking about how long the passwd prompt waits for then it's
'Defaults passwd_timeout=<minutes>'
From 'man sudoers':
passwd_timeout Number of minutes before the sudo password prompt times out, or 0 for no timeout. The timeout may include a fractional component if minute granularity is insuffi‐ cient, for example 2.5. The default is 0.timestamp_timeout Number of minutes that can elapse before sudo will ask for a passwd again. The timeout may include a frac‐ tional component if minute granularity is insufficient, for example 2.5. The default is 15. Set this to 0 to always prompt for a password. If set to a value less than 0 the user's time stamp will never expire. This can be used to allow users to create or delete their own time stamps via “sudo -v” and “sudo -k” respec‐ tively.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now