Last active
December 7, 2016 20:01
-
-
Save andresvia/9698fd1a28c00f78bd1646d67e9740d5 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
#!/bin/bash | |
set -e -u | |
echo "i'm not root right? whoami $(whoami)" | |
echo right | |
sudo su << 'EOF' | |
echo "i'm root right? whoami = $(whoami)" | |
EOF | |
echo right |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment