best_hosting

Saturday, December 19, 2009

How to make terminal ask for password every time you type sudo command


when you type sudo command for the first time in a terminal it will ask you the sudo password.
This password will be remembered by that terminal for 15 minutes by default.

If you want terminal to ask for password each time you type sudo command just do as said below.
1. Type at terminal
sudo visudo

2. Edit as shown below

Change

Defaults env_reset

to

Defaults env_reset,timestamp_timeout=0

1 comments:

tsakf on December 21, 2009 1:09 AM said...

Nice tip. Added it to my library.
http://fosslib.tsakf.net/record/321

 

Linux Tips Copyright © 2010 Dipin Krishna @ Linuxense