[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sudo versus su environment?



On Friday 26 May 2006 02:41, Limin Wang wrote:
> 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

I think it should be "!env_reset".

Chris

>
> * 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

-- 
C. Hurschler



Reply to: