When I "su -" I get the following. Putting hooks into my .bash_profile file it does not get to that file, so it reads something before aht too? Tia nvlnxt21:/etc # su - -bash: listserv:/root: No such file or directory hit0 hit hit2 nvlnxt21:/root # cat .bas*pro* listserv:/root # cat .bash_profile # .bash_profile echo "hit0" # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi echo "hit" # User specific environment and startup programs set -o vi export PS1=`hostname`':$PWD # ' #export PATH echo "hit2"
Hi Patrick,
When I "su -" I get the following. Putting hooks into my .bash_profile file it does not get to that file, so it reads something before aht too? Tia
nvlnxt21:/etc # su - -bash: listserv:/root: No such file or directory hit0 hit hit2
--> Have a look at ~/.bashrc, ~/.profile, /etc/bash.bashrc, /etc/profile and any script that is called from within these files. HTH, Armin -- Am Hasenberg 26 office: Institut für Atmosphärenphysik D-18209 Bad Doberan Schloss-Straße 6 Tel. ++49-(0)38203/42137 D-18225 Kühlungsborn / GERMANY Email: schoech@iap-kborn.de Tel. +49-(0)38293-68-102 WWW: http://armins.cjb.net/ Fax. +49-(0)38293-68-50
participants (3)
-
Armin Schoech
-
Patrick B. O'Brien
-
Peter Wiersig