[sudo-users] Retain SSH_AUTH_SOCK environment variable

Lemuel Moore lwmoore at us.ibm.com
Wed Mar 24 14:57:30 EDT 2010



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".
I then issue "env | grep SSH_AUTH_SOCK" and receive:  " "

In my sudoers file I have the following defined:  Defaults
env_reset,env_keep+="SSH_AUTH_SOCK"

Any idea why this is not working?



More information about the sudo-users mailing list