On Thu, 2006-05-25 at 14:16 +0200, Chris wrote:
> 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?
Are you using:
sudo <command>
or
su -c <command>
If you do the first, you are not getting the root environment, with the
second you are. But the problem is that feedback doesn't get to you
properly.
In any critical script, I use nearly every time:
sudo su -c command
For some reason, it has never failed me.
--
greg, greg@gregfolkert.net
The technology that is
Stronger, Better, Faster: Linux
Use Debian GNU/Linux, its a bazaar thing
NOTICE: Due to Presidential Executive Orders, the
National Security Agency may have read this email
without warning, warrant, or notice, and certainly
without probable cause. They may do this without
any judicial or legislative oversight. You have no
recourse nor protection.
Attachment:
signature.asc
Description: This is a digitally signed message part