Skip to content

Instantly share code, notes, and snippets.

Created April 24, 2014 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f59bb4a4c3251ea60963 to your computer and use it in GitHub Desktop.
Save anonymous/f59bb4a4c3251ea60963 to your computer and use it in GitHub Desktop.
Unexpected passphrase inquisition
Runs as root: /etc/init.d/test
sudo -u A /home/A/test.sh
/home/A/test.sh
pwd
id
git pull
Output:
/home/A/
uid=1000(A) ...
Enter passphrase for key '/home/A/.ssh/id_rsa': <-Why does it ask? It never did when running test.sh as A directly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment