"sudo su" does not pass the environment variables to the new shell?
116598
Environment variables when run with 'sudo'
70899
BASH script to set environment variables not working
18283
.bash_profile not sourced when running su
95130
Why running command as sudo returns command not found?
116740
Changing to root user inside shell script
13760
How do I grant sudo privileges to an existing user?
98789
Is there a way to change the environment variables of another process in Unix?
50724
Why doesn't "sudo su" in a shell script run the rest of the script as root?
45048
Getting sudo to work for an alias
131978
Running a command a different user using `su` gives "standard in must be a tty"
7317
how to: Please sudo, do _not_ setup any environment, especially $SUDO_USER?
49216
How to update the PATH user environment variable from command-line
12861
Why does alias in /etc/bash.bashrc not apply to sudo?
103004
What environment do I get with sudo?
298
sudo echo "something" >> /etc/privilegedFile doesn't work
113730
how to run two commands in sudo?
119661
Changing the default shell without chsh or administrator privileges