1 |
Nicolas Richard <theonewiththeevillook@×××××.fr> wrote: |
2 |
|
3 |
>Hi everybody, |
4 |
> |
5 |
>I don't understand where sudo finds the value for the PATH env |
6 |
>variable. |
7 |
> |
8 |
>Here is the output of the relevant (at least I thought they were) |
9 |
>commands. Can somebody explain to me why I still have |
10 |
>/usr/local/texlive/*2011*/bin/i386-linux in the first sudo output ? I |
11 |
>don't get it, and did not find anything in the man page of sudo. |
12 |
> |
13 |
>Thanks in advance for your help. |
14 |
> |
15 |
>youngfrog@geodiff-mac3 ~ $ bash -c 'echo $PATH' |
16 |
>~/bin/overrideglobal:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.4:/usr/games/bin:/usr/local/texlive/2012/bin/i386-linux:~/bin |
17 |
> |
18 |
>youngfrog@geodiff-mac3 ~ $ source /etc/profile |
19 |
> |
20 |
>youngfrog@geodiff-mac3 ~ $ bash -c 'echo $PATH' |
21 |
>/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.4:/usr/games/bin:/usr/local/texlive/2012/bin/i386-linux |
22 |
> |
23 |
>youngfrog@geodiff-mac3 ~ $ sudo bash -c 'echo $PATH' |
24 |
>/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/local/texlive/2011/bin/i386-linux |
25 |
> |
26 |
>youngfrog@geodiff-mac3 ~ $ sudo -i bash -c 'echo $PATH' |
27 |
>/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.4:/usr/local/texlive/2012/bin/i386-linux:/root/bin |
28 |
> |
29 |
>youngfrog@geodiff-mac3 ~ $ sudo grep -r texlive/2011 /etc |
30 |
> |
31 |
>youngfrog@geodiff-mac3 ~ $ sudo grep -r texlive/2011 ~root |
32 |
>/root/.bash_history:cd /usr/local/texlive/2011 |
33 |
>/root/.bash_history:grep texlive/2011 * -r |
34 |
>/root/.bash_history:grep texlive/2011 . -r |
35 |
>/root/.bash_history:grep texlive/2011 .* -r |
36 |
> |
37 |
>youngfrog@geodiff-mac3 ~ $ grep -v '^#\|^$' /etc/environment |
38 |
>PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.3:/usr/local/texlive/2012/bin/i386-linux:/root/bin |
39 |
|
40 |
Nicolas. |
41 |
|
42 |
I can see several /usr/local/... paths in your /etc/environment. |
43 |
|
44 |
-- |
45 |
Joost |
46 |
-- |
47 |
Sent from my Android phone with K-9 Mail. Please excuse my brevity. |