Last active
March 19, 2016 14:29
-
-
Save othree/adb6f2a0d6f9b43aeb6a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setfacl -m u:http:rw $SSH_AUTH_SOCK | |
setfacl -m u:http:x $(dirname $SSH_AUTH_SOCK) | |
sudo -u http -s /bin/sh -c "env SSH_AUTH_SOCK=$SSH_AUTH_SOCK git pull" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://serverfault.com/questions/107187/ssh-agent-forwarding-and-sudo-to-another-user/448972#448972