Wednesday, May 16, 2012
3:42 PM

Making sudo remember the password

The sudo command by default remembers a password for 15 minutes i.e. once a user enters the correct password for sudo the user can use sudo with out being prompted for password for 15 minutes.

This behaviour can be modified using the flag "timestamp_timeout" in the /etc/sudoers file.
To make sudo remember the password for 30 minutes add the following line after the initial comments.



To make sudo prompt for password every time add the following line after the initial comments



And to make sudo remember the password as long as the terminal is open add the,following line


0 comments:

Post a Comment