FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 05-31-2008, 07:56 PM
Marc Blumentritt
 
Default Problem with modifying PATH with a file in env.d

Hi,

I want to modify the PATH variable for every user by adding this file in
/etc/env.d :


hive env.d # cat 99busybox
PATH=/bblinks
hive env.d # ls -l 99busybox
-rw-r--r-- 1 root root 14 2008-05-31 21:46 99busybox

The dir /bblinks does exist, but my PATH variable is not changed. I did
run env-update && . /etc/profile : No change, reboot: no change.


What am I doing wrong?

Thanks for any advice.
Marc


--
gentoo-user@lists.gentoo.org mailing list
 
Old 05-31-2008, 08:01 PM
Marc Blumentritt
 
Default Problem with modifying PATH with a file in env.d

Hi,

I want to modify PATH for every user by adding this file in /etc/env.d:

hive env.d # cat 99busybox
PATH=/bblinks
hive env.d # ls -l 99busybox
-rw-r--r-- 1 root root 14 2008-05-31 21:46 99busybox

Neither env-update && . /etc/profile nor a reboot adds /bblinks to my PATH.

Any advice?
Marc

--
gentoo-user@lists.gentoo.org mailing list
 
Old 06-01-2008, 09:13 AM
Marc Blumentritt
 
Default Problem with modifying PATH with a file in env.d

Marc Blumentritt schrieb:


I just stumbled about something new:

marc@hive ~ $ echo $PATH
/usr/local/sbin/:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:

/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:


/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/games/bin:/bblinks
marc@hive ~ $ sudo -i
hive ~ # echo $PATH
/root/tools:/usr/lib/ccache/bin:/usr/lib/distcc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:

/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/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:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin



My standard user (marc) has now /bblinks in his PATH, but not root?
Any idea why this is happens?


OK, solved this myself. Adding ROOTPATH=/bblinks to 99busybox does set
the path for root, too.


Regards
Marc

--
gentoo-user@lists.gentoo.org mailing list
 
Old 06-01-2008, 09:16 AM
Miika Linnapuomi
 
Default Problem with modifying PATH with a file in env.d

Sun, 01 Jun 2008 08:58:07 +0200
Marc Blumentritt <marc.blumentritt@arcor.de> wrote:

> I just stumbled about something new:
>
> marc@hive ~ $ echo $PATH
> /usr/local/sbin/:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:
> /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:
> /usr/kde/3.5/bin:/usr/qt/3/bin:/usr/games/bin:/bblinks
> marc@hive ~ $ sudo -i
> hive ~ # echo $PATH
> /root/tools:/usr/lib/ccache/bin:/usr/lib/distcc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:
> /usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/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:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin
>
> My standard user (marc) has now /bblinks in his PATH, but not root?
> Any idea why this is happens?
>
> Marc
>

If you look in /etc/profile, you will see that root path is set to
$ROOTPATH, not $PATH, so root gets */sbin. To get /bblinks for root
too, add ROOTPATH="/bblinks"

Hope that helps

Miika
 

Thread Tools




All times are GMT. The time now is 01:06 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org