2. When you sudo, you are executing commands in an environment different from the one you originally sourced the credentials in and none of the environment variables are set.