Created
March 7, 2017 05:34
-
-
Save jtsagata/b09699bbb5a2128a4d09851d3b5d2567 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
| $ echo "id:${UID}/${SUDO_UID} user:${USER}/${SUDO_USER} home: ${HOME}" | |
| ➡ id:1000/ user:talos/ home: /home/talos | |
| $ sudo bash -c 'echo "id:${UID}/${SUDO_UID} user:${USER}/${SUDO_USER} home: ${HOME}"' | |
| ➡ id:0/1000 user:root/talos home: /home/talos | |
| $ sudo -H bash -c 'echo "id:${UID}/${SUDO_UID} user:${USER}/${SUDO_USER} home: ${HOME}"' | |
| ➡ id:0/1000 user:root/talos home: /root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment