Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

Small tip - How to prevent Linux to "remember" your sudo password

Date: 2009-02-09 00:00:00 -0400

You may know that if you type

sudo [command]

Your password will be asked, but if you type it again in a few seconds, it will not be asked, because Linux "remember" your password for some time, well if you are really concerned about this, you may force Linux to "forget" your password inmediately.

How to do it?

sudo visudo

And add this line:

Defaults    timestamp_timeout = 0

You may change 0 to any number representing the minutes you may want your password to be "remembered", or let in 0 so you will need to type your password each time you type sudo

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.