/etc/profile sieht so aus:
Code: Alles auswählen
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
export PATH PS1
umask 022
Als Normaluser gibt es beide Dateien. Habe es nicht genau geprüft, nehme aber an, dass dort beide ausgeführt werden (in .bash_profile werden nur umask gesetzt und .bashrc ausgeführt).
Auf dem Laptop habe ich Etch als Neuistallation, da gibt es .bash_profile auch für root.
Warum wird auf dem PC als root nicht nach .bash_profile gesucht?
Rolf