-
-
Save anonymous/f59bb4a4c3251ea60963 to your computer and use it in GitHub Desktop.
Unexpected passphrase inquisition
This file contains 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
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