Gentoo Archives: gentoo-user

From: Marc Blumentritt <marc.blumentritt@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Problem with modifying PATH with a file in env.d
Date: Sun, 01 Jun 2008 06:58:42
Message-Id: g1tha0$5d7$1@ger.gmane.org
In Reply to: Re: [gentoo-user] Problem with modifying PATH with a file in env.d by Stroller
1 Stroller schrieb:
2 >
3 > $ grep PATH .*
4 > .bashrc:export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${PATH}"
5 > $
6 >
7 > The path in my .bashrc adds to the existing path, but maybe you have
8 > something else there?
9
10 I know that I can use .bashrc for adding something to PATH. But I want
11 to modify PATH for every user without changing thier .bashrc. By the
12 way, I plan to remove bash from my system and use busybox ash.
13
14
15 I just stumbled about something new:
16
17 marc@hive ~ $ echo $PATH
18 /usr/local/sbin/:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:
19 /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:
20 /usr/kde/3.5/bin:/usr/qt/3/bin:/usr/games/bin:/bblinks
21 marc@hive ~ $ sudo -i
22 hive ~ # echo $PATH
23 /root/tools:/usr/lib/ccache/bin:/usr/lib/distcc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:
24 /usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/sun-jdk-1.4.2.17/bin:
25 /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
26
27 My standard user (marc) has now /bblinks in his PATH, but not root?
28 Any idea why this is happens?
29
30 Marc
31
32 --
33 gentoo-user@l.g.o mailing list

Replies

Subject Author
[gentoo-user] [SOLVED] Re: Problem with modifying PATH with a file in env.d Marc Blumentritt <marc.blumentritt@×××××.de>
Re: [gentoo-user] Re: Problem with modifying PATH with a file in env.d Miika Linnapuomi <mki@××××××××.net>