Bug 96 - Disappear environment variable
Disappear environment variable
Status: RESOLVED INVALID
Product: Sudo
Classification: Unclassified
Component: Sudo
1.6.6
PC Linux
: normal normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2003-01-06 18:50 MST by Jim Easton
Modified: 2003-03-13 23:37 MST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Easton 2003-01-06 18:50:18 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
Comment 1 Todd C. Miller 2003-03-13 19:37:03 MST
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.