Search

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


3 comments:

  1. Nice information many thanks to the author. It is incomprehensible to me now but in general the usefulness and significance is overwhelming
    internet phone service provider

    ReplyDelete
  2. This is a great blog post. Thank you very much for the fantastic insight and we really appreciate the time you took to write this. Thanks again.http://celabright.com/

    ReplyDelete
  3. Neil and Mike, I don't think you realise your links automatically get the 'nofollow' attribute, so they will not contribute to your google ranking.

    ReplyDelete