Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Seltsames Verhalten bei Anmeldung
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
detlef
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2002
Posts: 116
Location: Kassel

PostPosted: Mon Feb 16, 2004 9:08 pm    Post subject: Seltsames Verhalten bei Anmeldung Reply with quote

N`abend zusammen,

Habe ein kleines "optisches" Problem. K.A. was genau ich gemacht habe - glaube es war ein source /etc/profile.
Seitdem ist die Konsolenanmeldung als root verhunzt. Wenn ich mich anmelde, kommen lauter Umgebungsvariablen:
Code:

declare -x CC="gcc"
declare -x CHROMIUM_DATA="/usr/share/games/chromium"
declare -x CLASSPATH="/opt/blackdown-jdk-1.4.1/jre/lib/rt.jar:."
declare -x COLORTERM=""
declare -x CONFIG_PROTECT="/usr/X11R6/lib/X11/xkb /usr/kde/3.2/share/config /usr/kde/3.1/share/config /usr/share/config"
declare -x CONFIG_PROTECT_MASK="/etc/gconf"
declare -x CVS_RSH="ssh"
declare -x CXX="g++"
declare -x DESKTOP_SESSION="kde-3.2.0"
declare -x DISPLAY=":0.0"
declare -x GLIBC_SSP_CHECKED="1"
declare -x GS_LIB="/home/detlef/.fonts"
declare -x GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:/home/detlef/.gtkrc-2.0:/home/detlef/.kde3.2/share/config/gtkrc"
declare -x GTK_RC_FILES="/etc/gtk/gtkrc:/home/detlef/.gtkrc:/home/detlef/.kde3.2/share/config/gtkrc"
declare -x G_BROKEN_FILENAMES="1"
declare -x HOME="/root"
declare -x HOSTNAME="gentooraid"
declare -x INFODIR="/usr/share/info:/usr/X11R6/info"
declare -x INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info"
declare -x INPUTRC="/etc/inputrc"
declare -x JAVAC="/opt/blackdown-jdk-1.4.1/bin/javac"
declare -x JAVA_HOME="/opt/blackdown-jdk-1.4.1"
declare -x JDK_HOME="/opt/blackdown-jdk-1.4.1"
declare -x KDEDIR="/usr/kde/3.2"
declare -x KDEDIRS="/usr"
declare -x KDE_FULL_SESSION="true"
declare -x KDE_MULTIHEAD="false"
declare -x KONSOLE_DCOP="DCOPRef(konsole-3217,konsole)"
declare -x KONSOLE_DCOP_SESSION="DCOPRef(konsole-3217,session-1)"
declare -x LANG="de_DE@euro"
declare -x LC_ALL="de_DE@euro"
declare -x LESS="-R"
declare -x LESSOPEN="|lesspipe.sh %s"
declare -x LOGNAME="detlef"
declare -x LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:"
declare -x MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/usr/X11R6/man:/opt/blackdown-jdk-1.4.1/man:/usr/qt/3/doc/man:/opt/vmware/man"
declare -x OLDPWD
declare -x PAGER="/usr/bin/less"
declare -x PATH="/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/opt/ati/bin:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1/bin:/opt/blackdown-jdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.2/bin:/usr/kde/3.1/bin:/usr/kde/2/bin:/usr/games/bin:/opt/vmware/bin:/usr/share/karamba/bin:/usr/share/apps/karamba/scripts"
declare -x PERLIO="stdio"
declare -x PS1="\\[\\033[01;31m\\]\\h \\[\\033[01;34m\\]\\W \\\$ \\[\\033[00m\\]"
declare -x PWD="/home/detlef"
declare -x QMAKESPEC="linux-g++"
declare -x QTDIR="/usr/qt/3"
declare -x ROOTPATH="/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/opt/ati/bin:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1/bin:/opt/blackdown-jdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.2/sbin:/usr/kde/3.2/bin:/usr/kde/3.1/sbin:/usr/kde/3.1/bin:/usr/kde/2/bin:/opt/vmware/bin:/opt/XnView:/usr/share/karamba/bin:/usr/share/apps/karamba/scripts"
declare -x SANE_CONFIG_DIR="/etc/sane.d"
declare -x SESSION_MANAGER="local/gentooraid:/tmp/.ICE-unix/3125"
declare -x SHLVL="4"
declare -x TERM="xterm"
declare -x USER="detlef"
declare -x WINDOWID="52428932"
declare -x XCURSOR_SIZE=""
declare -x XCURSOR_THEME="default"
declare -x XDM_MANAGED="/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,method=classic"
declare -x XINITRC="/etc/X11/xinit/xinitrc"

Sonst geht alles wie gewohnt.
Wie kann ich das wieder abschalten?

Danke schonmal
Gruß Detlef
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Feb 16, 2004 9:14 pm    Post subject: Reply with quote

Was hast du in /etc/profile bzw. in /root/.bashrc oder /root/.bash_profile?
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
detlef
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2002
Posts: 116
Location: Kassel

PostPosted: Mon Feb 16, 2004 9:22 pm    Post subject: Reply with quote

Hi,

/etc/profile
Code:

root@gentooraid root # cat /etc/profile
# /etc/profile:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/profile,v 1.15 2002/11/18 19:39:22 azarah Exp $
export LANG="de_DE@euro"
export LC_ALL="de_DE@euro"
export PERLIO="stdio"

if [ -e "/etc/profile.env" ]
then
        source /etc/profile.env
fi

#077 would be more secure, but 022 is generally quite realistic
umask 022

if [ `/usr/bin/whoami` = 'root' ]
then
        if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ]
        then
                export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
        fi
        export
PATH="/bin:/sbin:/usr/lib/ccache/bin:/usr/lib/distcc/bin:/usr/bin:/usr/sbin:/usr/kde/3.1/bin:${ROOTPATH}"
else
        if [ "$SHELL" = '/bin/bash' ] || [ "$SHELL" = '/bin/sh' ]
        then
                export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
        fi
        export PATH="/bin:/usr/bin:/usr/kde/3.1/bin:${PATH}"
fi
unset ROOTPATH

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
        export INPUTRC="/etc/inputrc"
fi


Eine /root/.bashrc u. .bash_profile hab ich net
Code:

ls -la .bash*
-rw-------    1 root     root         9731 16. Feb 22:09 .bash_history


Detlef
Back to top
View user's profile Send private message
Beforegod
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 1495
Location: Würzburg

PostPosted: Mon Feb 16, 2004 10:15 pm    Post subject: Reply with quote

Interresant wäre auch die /etc/profile.env

Probier mal ein env-update und melde Dich dann nochmal an.
Back to top
View user's profile Send private message
detlef
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2002
Posts: 116
Location: Kassel

PostPosted: Mon Feb 16, 2004 11:00 pm    Post subject: Reply with quote

Code:

root@gentooraid detlef # cat /etc/profile.env
# THIS FILE IS AUTOMATICALLY GENERATED BY env-update.
# DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES
# GO INTO /etc/profile NOT /etc/profile.env

export KDEDIRS='/usr'
export INFODIR='/usr/share/info:/usr/X11R6/info'
export INFOPATH='/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info'
export CONFIG_PROTECT_MASK='/etc/gconf'
export CLASSPATH='/opt/blackdown-jdk-1.4.1/jre/lib/rt.jar:.'
export ROOTPATH='/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/opt/ati/bin:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1/bin:/opt/blackdown-jdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.2/sbin:/usr/kde/3.2/bin:/usr/kde/3.1/sbin:/usr/kde/3.1/bin:/usr/kde/2/bin:/opt/vmware/bin:/opt/XnView:/usr/share/karamba/bin:/usr/share/apps/karamba/scripts'
export CONFIG_PROTECT='/usr/X11R6/lib/X11/xkb /usr/kde/3.2/share/config /usr/kde/3.1/share/config /usr/share/config'
export MANPATH='/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/usr/X11R6/man:/opt/blackdown-jdk-1.4.1/man:/usr/qt/3/doc/man:/opt/vmware/man'
export PATH='/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/opt/ati/bin:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1/bin:/opt/blackdown-jdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.2/bin:/usr/kde/3.1/bin:/usr/kde/2/bin:/usr/games/bin:/opt/vmware/bin:/usr/share/karamba/bin:/usr/share/apps/karamba/scripts'
export KDEDIR='/usr/kde/3.2'
export JDK_HOME='/opt/blackdown-jdk-1.4.1'
export JAVAC='/opt/blackdown-jdk-1.4.1/bin/javac'
export LESS='-R'
export CC='gcc'
export XINITRC='/etc/X11/xinit/xinitrc'
export HOSTNAME='gentooraid'
export G_BROKEN_FILENAMES='1'
export QMAKESPEC='linux-g++'
export LESSOPEN='|lesspipe.sh %s'
export CXX='g++'
export CVS_RSH='ssh'
export GLIBC_SSP_CHECKED='1'
export QTDIR='/usr/qt/3'
export JAVA_HOME='/opt/blackdown-jdk-1.4.1'
export PAGER='/usr/bin/less'
export GDK_USE_XFT='1'
export CHROMIUM_DATA='/usr/share/games/chromium'
export SANE_CONFIG_DIR='/etc/sane.d'

env-update hatte ich schon. Bringt nix...
Back to top
View user's profile Send private message
Beforegod
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 1495
Location: Würzburg

PostPosted: Tue Feb 17, 2004 7:35 am    Post subject: Reply with quote

hmm..
Nutzt Du normal die Bash oder hast Du eine andere shell?
Back to top
View user's profile Send private message
detlef
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2002
Posts: 116
Location: Kassel

PostPosted: Tue Feb 17, 2004 7:43 am    Post subject: Reply with quote

Nee, ist schon die bash. Komisch, oder?!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum