Gentoo Archives: gentoo-user

From: Miika Linnapuomi <mki@××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Problem with modifying PATH with a file in env.d
Date: Sun, 01 Jun 2008 09:16:24
Message-Id: 20080601101614.4d8c3074@pli
In Reply to: [gentoo-user] Re: Problem with modifying PATH with a file in env.d by Marc Blumentritt
1 Sun, 01 Jun 2008 08:58:07 +0200
2 Marc Blumentritt <marc.blumentritt@×××××.de> wrote:
3
4 > I just stumbled about something new:
5 >
6 > marc@hive ~ $ echo $PATH
7 > /usr/local/sbin/:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:
8 > /opt/sun-jdk-1.4.2.17/bin:/opt/sun-jdk-1.4.2.17/jre/bin:/opt/sun-jdk-1.4.2.17/jre/javaws:
9 > /usr/kde/3.5/bin:/usr/qt/3/bin:/usr/games/bin:/bblinks
10 > marc@hive ~ $ sudo -i
11 > hive ~ # echo $PATH
12 > /root/tools:/usr/lib/ccache/bin:/usr/lib/distcc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:
13 > /usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/sun-jdk-1.4.2.17/bin:
14 > /opt/sun-jdk-1.4.2.17/jre/bin:/opt/sun-jdk-1.4.2.17/jre/javaws:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin
15 >
16 > My standard user (marc) has now /bblinks in his PATH, but not root?
17 > Any idea why this is happens?
18 >
19 > Marc
20 >
21
22 If you look in /etc/profile, you will see that root path is set to
23 $ROOTPATH, not $PATH, so root gets */sbin. To get /bblinks for root
24 too, add ROOTPATH="/bblinks"
25
26 Hope that helps
27
28 Miika

Attachments

File name MIME type
signature.asc application/pgp-signature