On Tue, Jul 22, 2003 at 11:49:43AM -0500, Bob Tanner wrote:
> When I log into boxA via cli, I get this:
> 
> PATH=/staff/tanner/bin:/usr/libexec/ccache/bin:/usr/libexec/distcc/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
> 
> But when I log in via X
> 
> PATH=/usr/libexec/ccache/bin:/usr/libexec/distcc/bin:/usr/libexec/ccache/bin:/usr/libexec/distcc/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/bin:/sbin:/usr/sbin:/usr/java/j2sdk1.4.1//bin
> 
> Where in the X login sequence does it [re]set the PATH?

check your .profile, .bash_profile, and .bashrc; see if they're each
invoking different $PATH configurations. I think .bashrc is used if you're
not doing a full login; .bash_profile or .profile (depending on
implementation) is used when you do a full login. (I belive 'full' login
being the difference between 'xterm' and 'xterm -ls'; or 'su' and 'su -').

have your .profile or .bash_profile  (whichever one works; IME, RH and
Debian differ on this point) invoke the .bashrc, so you'll
get a consistent environment:

[chrome at barbarian:~]$cat .bash_profile 
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs
PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME=""
export USERNAME BASH_ENV PATH


Carl Soderstrom.
-- 
Systems Administrator
Real-Time Enterprises
www.real-time.com

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list