[sudo-users] Sudo and Solaris
Wesley Schwengle
wesley.schwengle at is.online.nl
Fri May 1 08:36:55 EDT 2009
Hello to all,
I have a question regarding sudo and Solaris and Linux.
If I do the following on a Linux machine I have the $USER environment variable:
echo $USER
wesleys
If I sudo to root I still have the $USER variable:
sudo zsh
echo $USER
root
If I then su to my own user the $USER entry is correct again:
su - wesleys
echo $USER
wesleys
If I do the same on a Solaris box the $USER var disappears:
echo $USER
wesleys
sudo zsh
echo $USER
root
su - bull
echo $USER
<empty line>
Can someone explain to my why this is happening and how I can solve this
problem?
Cheers,
Wesley
--
Online Broadband BV, http://www.online.nl, http://www.euronet.nl
Wesley Schwengle, System Administrator, IT Operations (Database/Application Management)
Muiderstraat 1, PO BOX 10241, 1001 EE Amsterdam, T: +31 20 5355555, F: +31 20 5355749
More information about the sudo-users
mailing list