Subhadip Roy Asked: 2015-10-23 10:01:55 +0800 CST2015-10-23 10:01:55 +0800 CST 2015-10-23 10:01:55 +0800 CST Increase duration of Sudo [duplicate] 772 I want to extend the duration of sudo in Ubuntu 14.04. It is irritating to provide password repeatedly. How can I do it? 14.04 1 Answers Voted Best Answer pl_rock 2015-10-23T10:09:07+08:002015-10-23T10:09:07+08:00 Ubuntu default sudo session is 15 minute (may change with different version) but you can change it . Run and open sudo visudo and change line : Defaults env_reset to Defaults env_reset,timestamp_timeout=20 It will not ask for 20 minute. if you do 0 then it will ask every time and if -1 then it will never prompt for password for sudo session.
Ubuntu default
sudo
session is15
minute (may change with different version) but you can change it . Run and openand change line :
to
It will not ask for
20
minute. if you do0
then it will ask every time and if-1
then it will never prompt for password forsudo
session.