Hallo Ihr,
kleines Problem, normalerweise wird doch die /etc/profile
und dann, wenn vorhanden, die .profile des Users gelesen.
Warum funktioniert das in SuSE 8.0 und 8.1 nicht.
Muss ich dazu erst was einschalten.
Danke
Gruss Christian
.profile
Re: .profile
bash-manpage lesen:<blockquote><hr>
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. The --noprofile option may
be used when the shell is started to inhibit this behav-
ior.
<i>... etwas geschnitten ...</i>
When an interactive shell that is not a login shell is
started, bash reads and executes commands from ~/.bashrc,
if that file exists. This may be inhibited by using the
--norc option. The --rcfile file option will force bash
to read and execute commands from file instead of
~/.bashrc.
<hr></blockquote>Wenn Du eine Login-Shell hast (wie beispielsweise an den virtuellen Konsolen /dev/tty1 bis typischerweise /dev/tty6), dann werden die /etc/profile und ~/.profile ausgeführt. Aber wenn Du eine interaktive non-login-Shell hast, wie beispielsweise unter X mittels xterm, rxvt, Konsole usw., wird nur die ~/.bashrc ausgeführt.
Jochen
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. The --noprofile option may
be used when the shell is started to inhibit this behav-
ior.
<i>... etwas geschnitten ...</i>
When an interactive shell that is not a login shell is
started, bash reads and executes commands from ~/.bashrc,
if that file exists. This may be inhibited by using the
--norc option. The --rcfile file option will force bash
to read and execute commands from file instead of
~/.bashrc.
<hr></blockquote>Wenn Du eine Login-Shell hast (wie beispielsweise an den virtuellen Konsolen /dev/tty1 bis typischerweise /dev/tty6), dann werden die /etc/profile und ~/.profile ausgeführt. Aber wenn Du eine interaktive non-login-Shell hast, wie beispielsweise unter X mittels xterm, rxvt, Konsole usw., wird nur die ~/.bashrc ausgeführt.
Jochen