Re: How do I permanently set the PATH variable ?

2001-11-28 Thread Dan Egli

if you mean permanant as in next time you login, you have to set it in your
login script. It's .bashrc
or you can edit /etc/profile and add it there, making it global to all
users.

- Original Message -
From: ethan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 28, 2001 9:45 PM
Subject: How do I permanently set the PATH variable ?


 Hi all,

 How do I permanently set the PATH variable to include the PATH i want
 eg. /sbin ? tried export but I don't think its permanent.

 thanks,

 /ethan



 ___
 Redhat-list mailing list
 [EMAIL PROTECTED]
 https://listman.redhat.com/mailman/listinfo/redhat-list




___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: How do I permanently set the PATH variable ?

2001-11-28 Thread Anthony E. Greene

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 28 Nov 2001, Dan Egli wrote:
if you mean permanant as in next time you login, you have to set it in your
login script. It's .bashrc
or you can edit /etc/profile and add it there, making it global to all
users.

Paths are set in ~/.bash_profile. Aliases are set in ~/.bashrc.

Tony
- -- 
Anthony E. Greene [EMAIL PROTECTED] http://www.pobox.com/~agreene/
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
Chat: AOL/Yahoo: TonyG05
Linux. The choice of a GNU generation http://www.linux.org/

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene [EMAIL PROTECTED] 0x6C94239D

iD8DBQE8BRRLpCpg3WyUI50RAjo/AJ9bfSMt9zTl2nAqtgbq6ds2DnzbCwCeP+Pq
wR+TkthATCVvZLLKTnfE8V8=
=3ObQ
-END PGP SIGNATURE-



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



RE: How do I permanently set the PATH variable ?

2001-11-28 Thread Patrick Nelson

Anthony E. Greene wrote:
-
Paths are set in ~/.bash_profile. Aliases are set in ~/.bashrc.
-
Basically all are loaded when you login

The sequence is (at least on my RH 62 and 72 sys):

  /etc/profile
  ~/.bash_profile
  ~/.bashrc
  /etc/bashrc

Now .bash_profile actually calls .bashrc prior to anything else if it
exists.  Also .bashrc calls /etc/bashrc prior to anything else it does if it
exists.

However, back to your PATH questions.  What I don't understand is how the
PATH statements gets set prior to login in and the /etc/profile gets called.
If you look in /etc/profile one of the first commands is:

  on 62 sys -- PATH=$PATH:/usr/X11R6/bin
  on 72 sys -- if root (uid of 0)
 PATH=/sbin:$PATH
 PATH=/usr/sbin:$PATH
 PATH=/usr/local/sbin:$PATH
 PATH=$PATH:/usr/X11R6/bin

Now if you put a echo $PATH prior to any commands and login it echos the
following: 

  on 62 sys -- users - /usr/local/bin:/bin:/usr/bin 
root  - /sbin:/bin:/usr/sbin:/usr/bin
  on 72 sys -- users - /usr/local/bin:/bin:/usr/bin 
root  -
/usr/local/sbin:/usr/local/bin:/sbin:/bin:4/usr/sbin:/usr/bin

which tells me that the path is set somewhere prior to the call to profile.
I've look around and have not found where this default path for users and
root gets set --note that changing them is probably not good idea--, but
these are the things that I have found because I like to know things down at
this level.



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: How do I permanently set the PATH variable ?

2001-11-28 Thread Bob Taylor

In message 4165C48DE9A0D211B6400800095C585F172B87@WASHINGTON, 
Patrick Nelson
writes:

[snip]

 Now if you put a echo $PATH prior to any commands and login it echos the
 following: 
 
   on 62 sys -- users - /usr/local/bin:/bin:/usr/bin 
 root  - /sbin:/bin:/usr/sbin:/usr/bin
   on 72 sys -- users - /usr/local/bin:/bin:/usr/bin 
 root  -
 /usr/local/sbin:/usr/local/bin:/sbin:/bin:4/usr/sbin:/usr/bin
 
 which tells me that the path is set somewhere prior to the call to profile.
 I've look around and have not found where this default path for users and
 root gets set --note that changing them is probably not good idea--, but
 these are the things that I have found because I like to know things down at
 this level.

strings /bin/login indicates PATH is set there.

-- 
+---+
| Bob Taylor Email: [EMAIL PROTECTED]   |
|---|
| Like the ad says, at 300 dpi you can tell she's wearing a |
| swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you   |
| can tell it's painted on. I suppose at 2400 dpi you can tell  |
| if the paint is giving her a rash. (So says Joshua R. Poulson)|
+---+




___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



How do I permanently set the PATH variable ?

2001-11-27 Thread ethan

Hi all,

How do I permanently set the PATH variable to include the PATH i want 
eg. /sbin ? tried export but I don't think its permanent.

thanks,

/ethan



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: How do I permanently set the PATH variable ?

2001-11-27 Thread Devon

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wednesday 28 November 2001 11:45 pm, ethan wrote:
 Hi all,

 How do I permanently set the PATH variable to include the PATH i want
 eg. /sbin ? tried export but I don't think its permanent.

You could do it in /etc/profile, have a look at how paths are manipulated 
there. Anything done there is system wide.
Probably better would be to do it in $HOME/.bash_profile.

- -D

- -- 

pgp key:  http://www.tuxfan.homeip.net:8080/pgpkey.txt

- --
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8BHGVeMAUbzJhSVcRAnkXAKCL1cEk+/e7Py17eSUcqe/yMPQ3bACgtugq
7Sc6JwrrCISIhiRA8dKqU38=
=q/PW
-END PGP SIGNATURE-



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: How do I permanently set the PATH variable ?

2001-11-27 Thread Ray Curtis

 p == phil46  ethan writes:

p Hi all,
p How do I permanently set the PATH variable to include the PATH i want 
p eg. /sbin ? tried export but I don't think its permanent.


For a single user, in your shell config file, such as .bash_profile add:

PATH=$PATH:/sbin

For the system add it to /etc/profile.



-- 
Ray Curtis Curtis Consulting http://www.ccux.com



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: How do I permanently set the PATH variable ?

2001-11-27 Thread ethan



thanks guys for your help...

Ray Curtis wrote:
[EMAIL PROTECTED]">
  

  

  
"p" == phil46  ethan writes:





        p Hi all,p How do I permanently set the PATH variable to include the PATH i want p eg. /sbin ? tried export but I don't think its permanent.For a single user, in your shell config file, such as .bash_profile add:PATH=$PATH:/sbinFor the system add it to /etc/profile.