View previous topic :: View next topic |
Author |
Message |
rbrosi n00b
Joined: 04 Mar 2003 Posts: 16
|
Posted: Fri Mar 07, 2003 10:21 am Post subject: failure in /etc/profile ??? |
|
|
Hi,
if i am root, path will not set me the answers from /etc/profile.env
is this wanted that way ???
Code: |
# /etc/profile:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/profile,v 1.15 2002/11/18 19:
39:22 azarah Exp $
if [ -e "/etc/profile.env" ]
then
source /etc/profile.env
fi
#077 would be more secure, but 022 is generally quite realistic
umask 022
if [ `/usr/bin/whoami` = 'root' ]
then
if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ]
then
export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
fi
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
else
if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ]
then
export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m
\]'
fi
export PATH="/bin:/usr/bin:${PATH}"
fi
unset ROOTPATH
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
export INPUTRC="/etc/inputrc"
fi
|
I installed X11R6, and added the variables to /etc/env.d/
when i do source /etc/profile all variables except path will be set correct.
So X11R6 pathes are not in env and i can't really use it.
WHY
Best Regards,
Rainer |
|
Back to top |
|
|
sheepdog Guru
Joined: 14 Oct 2002 Posts: 369 Location: Edison Enterprises Inc., Lake Oswego, Oregon, USA
|
Posted: Fri Mar 07, 2003 4:28 pm Post subject: convention |
|
|
I think it's just conventional for root to work from the command line and therefore have little need for the path to X. Your welcome to change this for your system as you please. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Fri Mar 07, 2003 5:55 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|