Re: .profile rekonstruieren
On 21.Feb 2005 - 16:31:23, Michelle Konzack wrote:
> Am 2005-02-21 00:08:32, schrieb Thomas Jahns:
> > Michelle Konzack <linux4michelle@freenet.de> writes:
>
> > > Interessant, denn wenn ich meine .bash_profile auf
> > > .profile umbenenne, funktioniert nichts mehr...
> >
> > Das passiert mit der bash dann, wenn auch eine .bash_login vorhanden ist
> > (und diese nicht doch noch .profile nachlädt).
>
> Als root werden:
>
> /etc/profile
> /root/.profile -> /root/.bashrc
Verdammt, dann mache ich irgendwas falsch:
morpheus:~>ls -l .bash_profile
-rw-r--r-- 1 root root 219 Feb 21 17:05 .bash_profile
morpheus:~>cat .bash_profile
# ~/.profile: executed by Bourne-compatible login shells.
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
echo ".profile"
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
export PATH
mesg n
andreas@morpheus:~>su -
Password:
.profile
> gelesen und als $USER
>
> /etc/profile
> $HOME/.bash_profile -> /root/.bashrc
Und hier dasselbe andersrum:
andreas@morpheus:~>ls -l .profile
-rw-r--r-- 1 andreas andreas 627 Feb 21 17:08 .profile
andreas@morpheus:~>head -5 .profile
# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
echo "profile"
andreas@morpheus:~>su - andreas
Password:
profile
> sprich, wenn Du sie für den $USER umbenennst,
> haste lediglich keine configurierte SHELL.
Falsch, lies nochmal man bash.
Andreas
--
Someone is speaking well of you.
Reply to: