[sudo-users] Retain SSH_AUTH_SOCK environment variable

Jamie Beverly jamie.beverly at yahoo.com
Thu Mar 25 22:17:36 EDT 2010

----- Original Message ----

> From: Lemuel Moore <lwmoore at us.ibm.com>
> To: sudo-users at sudo.ws
> Sent: Wed, March 24, 2010 11:57:30 AM
> Subject: [sudo-users] Retain SSH_AUTH_SOCK environment variable
> I use PuTTY on my windows workstation with "Allow agent forwarding" set 
> to
> SSH using private/public to my AIX system.
> I then issue "env | grep 
> SSH_AUTH_SOCK" and receive:
> SSH_AUTH_SOCK=/tmp/ssh-xxxxxxxxxx/agent.11112222" 
> I then issue "sudo su - usertest".

'su -' is clearing that env variable, not sudo. If you have a reasonably modern version of sudo, just use 'sudo -i'. 


More information about the sudo-users mailing list