[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Maintaining PATH while running make with sudo
From: |
Steve Deiters |
Subject: |
Maintaining PATH while running make with sudo |
Date: |
Mon, 1 Mar 2010 14:52:29 -0600 |
It seems make is setting a default PATH variable when I run with sudo.
If I run a root shell with 'sudo -s' followed by 'echo $PATH', I see the
correct PATH. However, while in the root shell if I run the simple
Makefile:
----Makefile----
all:
@echo $(PATH)
----------------
it will not give me the same as the result from the echo.
I am running Make 3.81, sudo 1.6.9p10, on Ubuntu 2.6.24-25-server
kernel.
Thanks.
- Maintaining PATH while running make with sudo,
Steve Deiters <=