sudo authentication across sessions

Since I’ve been asked this recently, if you want to avoid typing your sudo password again after opening up another shell session (with konsole, gnome-terminal, screen or whatever), simply add the following to /etc/sudoers (use sudo visudo to modify the file):

# Share across sessions:
Defaults !tty_tickets

Read www.sudo.ws/sudoers.man.html for the details.

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