Sudo and tty_tickets option

It’s about ssh and sudo sessions. Working on a new Ubuntu 12.04 instance, I noticed
it was not keeping my sudo sessions open across ssh connections.

Such behaviour was a default in previous releases. I never had to configure it
and it just worked. It’s quite annoying to input your password repeatedly
when you are running a bunch of automated script to configure a new instance,
especially if you are testing those configurations and you run them on and on.

So here is the line you have to add to your /etc/sudoers to do the trick:

Defaults        !tty_tickets

I’ve read the docs too late once again. You please go and read the docs to know
how it works.

Security?

Keep in mind that changing this configuration will allow anyone who is able to
access your shell on the remote machine to run a sudo command without password
prompt.

Advertisements

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