Re: Diogenes Impersonation

From: Robert Newson (ReapNewsT_at_uk.co.fsnet.bullet3)
Date: 09/21/03

  • Next message: Julian: "Re: Sony Vaio GRT Series."
    Date: Sun, 21 Sep 2003 03:57:57 GMT
    
    

    cfk wrote:

    > In questing for knowledge, Saturdays puzzlements are:
    >
    > 1) Where in RedHat8/RedHat9 besides .bashrc is the PATH set for root and
    > also for mere-mortal usernames? I seem to have more things in my path then I
    > wish and its not obvious who'all is setting them so I can remove some
    > duplicates?

    $ man bash
    ...
    INVOCATION
            A login shell is one whose first character of argument
            zero is a -, or one started with the -login flag.

            An interactive shell is one whose standard input and out­
            put are both connected to terminals (as determined by
            isatty(3)), or one started with the -i option. PS1 is set
            and $- includes i if bash is interactive, allowing a shell
            script or a startup file to test this state.

            Login shells:
              On login (subject to the -noprofile option):
                    if /etc/profile exists, source it.

                    if ~/.bash_profile exists, source it,
                      else if ~/.bash_login exists, source it,
                        else if ~/.profile exists, source it.

              On exit:
                    if ~/.bash_logout exists, source it.

    ...
    $ cat /etc/profile
    ...
    for i in /etc/profile.d/*.sh ; do
            if [ -x $i ]; then
                    . $i
            fi
    done
    ...
    $ grep PATH /etc/profile /etc/profile.d/*.sh
    /etc/profile:PATH="$PATH:/usr/X11R6/bin"
    /etc/profile:export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
    /etc/profile.d/kde.sh:
    if ! echo $PATH | grep -q "$kdepath" ; then
    /etc/profile.d/kde.sh: PATH="$kdepath:$PATH"
    /etc/profile.d/kde.sh:export KDEDIR PATH
    /etc/profile.d/krb5.sh:PATH=/usr/kerberos/bin:"$PATH"
    /etc/profile.d/qt.sh: PATH=$QTDIR/bin:$PATH
    /etc/profile.d/qt.sh: MANPATH=$QTDIR/man:$MANPATH
    /etc/profile.d/qt.sh: LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
    /etc/profile.d/qt.sh:export QTDIR PATH MANPATH LD_LIBRARY_PATH


  • Next message: Julian: "Re: Sony Vaio GRT Series."