"Praedor S.Tempus" wrote:
> 
> Somewhere on this infernal box is a path statement which is setting it up for
> me and all users.  I cannot find it - I would like to change it so a few new
> directories are in the path for all users.  It used to be /etc/profile which
> contained the penultimate path statement - but no more.  Apparently,
> .bash_profile doesn't serve any purpose (on my box at least).  I have to
> manually do an "export <desired path>" from a CLI to get it to change but
> then, it is ONLY for that session.

Using LM8.0:

Among other things, "man login" has this paragraph:

       Random  administrative things, such as setting the UID and
       GID of the tty are performed.  The TERM environment  vari�
       able  is  preserved, if it exists (other environment vari�
       ables are preserved if the -p option is used).   Then  the
       HOME,  PATH,  SHELL,  TERM,  MAIL, and LOGNAME environment
       variables     are     set.      PATH      defaults      to
       /usr/local/bin:/bin:/usr/bin:.   for  normal users, and to
       /sbin:/bin:/usr/sbin:/usr/bin for root.  Last, if this  is
       not a "quiet" login, the message of the day is printed and
       the file with the user's name in /usr/spool/mail  will  be
       checked,  and a message printed if it has non-zero length.

SHELL is set from /etc/passwd (default=/bin/sh). See "man bash".

"strings `which bash`" gives this set:
   ~/.bashrc
   /etc/profile
   ~/.profile
   ~/.bash_profile
   ~/.bash_login

My ~/.bashrc-private contains, among many other things:
   export
PATH="$PATH:~/bin"                                                                     
                        

Be careful how you use the above line, or you'll get lots of path copies.

I'm sure you can follow the bouncing ball through these scripts...

HTH,
Pierre

Reply via email to