Extend sudo timeout in Ubuntu

In a terminal window:

sudo visudo

Edit the file and add

Defaults timestamp_timeout = 45

This means extending the timeout to 45 minutes

2 responses to “Extend sudo timeout in Ubuntu

  1. I believe sudo in Ubuntu already defaults to a 15-minute timeout.

    If you’re extending the timeout, wouldn’t it be to 20 minutes?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s