Re: sudo versus su environment?
Chris,
The latest sudo will reset the env default, so you need add below line to
/etc/sudoers:
lmwang@laptop:~$ sudo more /etc/sudoers
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults !env_rese
Regards,
Limin
* Chris <list.hurschler@gmx.de> [2006-05-25 14:16:43 +0200]:
> Hi,
>
> I have a strange problem. I have sudo setup so that I can sudo apt-get, to
> update for instance. In one network when I have an http_proxy set in the
> environment apt-get update can connect when I use su, but not when I use
> sudo. env shows the proxy set correctly, but apt-get cannot seem to connect
> when sudo'ing. Any sugestions?
>
> Thanks
> --
> C. Hurschler
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
Reply to: