Hi SuSE experts, I have some questions in regard to what gets when executed whilst doing a login. Yes, I have read the man pages of bash and it appears that these are not applicable to the SuSE V7.3 installation I have. Depending on how I log in, LD_LIBRARY_PATH gets /opt/mozilla ... appended several time. This is without having any ~/.profile, ~/.bashrc, ~/.bash_login or ~/.bash_profile in the user's home directory. LD_LIBRARY_PATH=/opt/mozilla//:/opt/mozilla//components:/opt/kde/lib:/opt/mozilla//:/opt/mozilla//components: I am absolutely confused about what is happening here. I assume that the standard Linux login sequence as described in the bash man pages is not adhered to in SuSE V7.3. Is there any written article about the way a login is performed on SuSE V7.3 that could guide me in the right direction? What I want to do, is to set up some special users to use different libraries etc to standard users. In my opinion this setup should be done in the .profile or .bash_profile in the user's home directory. I put some tracing in the various files. This is the sequence in which the login files are called when one logs in graphically (kde) /etc/profile /usr/X11R6/lib/X11/xdm/Xsession .bashrc /usr/X11R6/lib/X11/xdm/Xsession kde .bashrc /usr/X11R6/lib/X11/xdm/Xsession kde .profile /usr/X11R6/lib/X11/xdm/Xsession kde .bashrc /usr/X11R6/lib/X11/xdm/Xsession kde /etc/profile /bin/bash .bashrc /bin/bas .bash_profile /bin/bash I state the extract from the bash man pages here: When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order and reads and executes commands from the first one that exists and is readable. This is not what happens, what happens is ~/.profile AND ~/.bash_profile gets executed. /etc/profile is run twice. This leads to the following inconsistency: If I put for example my re-definition of QTDIR into ~/.profile - where in my opinion it should go -, it gets reset by the second invocation of /etc/profile. If I put the definitions into ~/.bashrc, the appends to paths are performed multiple times. Surely, this can't be right. Any help is really appreciated. Peter Sutter
participants (1)
-
Peter Sutter