Bugzilla – Bug 96
Disappear environment variable
Last modified: 2003-03-13 23:37:03 MST
Hi, Running on: Red Hat Linux release 8.0 (Psyche) Kernel 2.4.18-14 on an i686 When I do a sudo to root from my user ID my environment variable "H" disappears. If it makes any difference the value of H is /usr/sunevere/dept/jim. Jim
It turns out that it is not sudo that is removing this variable. For instance, you will see the same behavior if you use "su". It appears that Linux's dynamic loaded (/lib/ld-linux.so.2) is removing that variable (and it seems, most variables that start with H) before sudo even gets executable. I built a static version of sudo on RedHat 8.0 and it did not exhibit this behavior.