[sudo-users] Sudo Path problem

Nikhil Gautam nikhilgautam1 at gmail.com
Mon Feb 18 15:18:08 EST 2008


Hi,

I am running latest Ubuntu linux and trying to compile my application.
The problem is with the environment path of the sudo. I set the
environment path and then try to do "sudo make" but it fails because
the path is not right. Here is how it looks like,

nikhil at bombay:~/lm300/software$ env | grep PATH
FS_FILES_PATH=/opt/eldk41fp/ppc_4xxFP
PATH=/opt/eldk41fp/usr/bin:/opt/eldk41fp/bin:/home/nikhil/lm300/software/u-boot/tools:/home/nikhil/lm300/build/tools/common/aka/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
AKA_GLIBC_XTOOL_PATH=/opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu
AKA_INITIAL_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

nikhil at bombay:~/lm300/software$ sudo env | grep PATH
FS_FILES_PATH=/opt/eldk41fp/ppc_4xxFP
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
AKA_GLIBC_XTOOL_PATH=/opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux-gnu
AKA_INITIAL_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
nikhil at bombay:~/lm300/software$

Searching on google, I found out that I should probably recompile sudo
with "--with-secure-path" option removed.

I am just wondering is there any other way to do this??

Thanks,

Nikhil



More information about the sudo-users mailing list