I'm having trouble with my PATH. I have a clean instance of an Amazon Linux virtual server and I set this in /etc/profile
M3_HOME=/usr/local/maven JAVA_HOME=/usr/java/latest PATH="$PATH:$M3_HOME/bin:$JAVA_HOME/bin"
In my myuser (my own user) account, I set this in my ~/.bash_profile
And then when I output the "env" as my user I get
But when I output it as sudo I get
sudo env PATH=/sbin:/bin:/usr/sbin:/usr/bin
How do I get my sudo user to use the same path as my normal user?