[SUMMARY] $USER set incorrectly

From: Hall, Johnny (johnny.hall@pahv.xerox.com)
Date: Wed Sep 15 1999 - 17:16:10 CDT


Thanks to Darren Dunham who wrote..

Someone su'd to root, then killed and restarted inetd. inetd inherited
the user's environment, and all things started from inetd also inhertied
the envrironment.

To test, get the PID of inetd and run...

/usr/ucb/ps -eww <PID>

If you see USER set to the user, that's what's going on.

1) Don't kill inetd on solaris, just HUP it.
2) Man 'env'. It has a way to run a process (like inetd) with a minimal
set of environment variables.. Mine only has 2 set.

PATH=/usr/sbin:/usr/bin
TZ=US/Pacific

Good Luck.

"Hall, Johnny" wrote:
>
> Does anyone know why $USER would get set to another user?
>
> --
> "Nothing is more difficult than the art of maneuvering for advantageous
> positions." - Sun Tzu

-- 
"Nothing is more difficult than the art of maneuvering for advantageous
positions." - Sun Tzu



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:26 CDT