Perhaps this is intended behavior, but if so I'd like to break it.
I've set the PATH variable in both
/etc/profile
and
/root/.profile
And when I ssh to my machine and login as any user, including root, and echo $PATH, everything looks great.
However, as soon as I start su'ing to different users the path changes to
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
Is there a way to set my path such that it sticks when I switch users?
I've set the PATH variable in both
/etc/profile
and
/root/.profile
And when I ssh to my machine and login as any user, including root, and echo $PATH, everything looks great.
However, as soon as I start su'ing to different users the path changes to
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
Is there a way to set my path such that it sticks when I switch users?