/etc/gdm/presession/default: registering your session with wtmp and utmp
/etc/gdm/presession/default: running: /usr/bin/x11/sessreg -a -w /var/run/utmp -x "/var/gdm/ :0.Xservers" -h "" -l ":0" "oracle"
/etc/profile: line 57 export command not found
/etc/bashrc: line 8 id command not found
/etc/bashrc: line 8 too many arguments
failed to excute message bus daemon no such file or directory
eof in dbus-launch reading address from bus daemon
我现在连root用户都登录不了。用CRT连接上去打什么命令都不行。都提示command not found
kaerser 于 2014-05-07 16:22:19发表:
11# kaerser
profile文件大小写改下;
bashrc文件
if [ "`id -g`" = "`id -u`" -a `id -u` -gt 99 ]; then
试试看,不知能不能帮到你。
kaerser 于 2014-05-07 16:18:31发表:
/etc/profile文件的问题
ORACLE_BASE=/OPT/ORACLE; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=YY; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
oracle_dns=YY; EXPORT ORACLE_DNS
PATH=/usr/sbinPATH; export PATH
PATH=$ORACLE_HOME/binPATH; export PATH
/etc/bashrc文件问题
# /etc/bashrc
# System wide functions and aliases
# Environment stuff goes in /etc/profile
# by default, we want this to get set.
# Even for non-interactive, non-login shells.
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
umask 002
else
umask 022
fi
把这两个地方修改下,你应该手动修改过这两个文件。
dlchengzi 于 2014-05-07 12:17:43发表:
很好,很强大!
wujianguoshiye 于 2013-08-26 14:56:24发表:
学习下
zphcd 于 2012-11-11 20:33:35发表:
学习了
yanglong985 于 2012-08-12 10:49:06发表:
支持
oicqfbi 于 2012-08-10 23:20:06发表:
[root@linux4 ~]# more /etc/bashrc
# /etc/bashrc
# System wide functions and aliases
# Environment stuff goes in /etc/profile
# by default, we want this to get set.
# Even for non-interactive, non-login shells.
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
umask 002
else
umask 022
fi
# are we an interactive shell?
if [ "$PS1" ]; then
case $TERM in
xterm*)
if [ -e /etc/sysconfig/bash-prompt-xterm ]; then
PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm
else
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${P
WD/#$HOME/~}\007"'
fi
;;
screen)
if [ -e /etc/sysconfig/bash-prompt-screen ]; then
PROMPT_COMMAND=/etc/sysconfig/bash-prompt-screen
else
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD
/#$HOME/~}\033\\"'
fi
;;
*)
[ -e /etc/sysconfig/bash-prompt-default ] && PROMPT_COMMAND=
/etc/sysconfig/bash-prompt-default
;;
esac
# Turn on checkwinsize
shopt -s checkwinsize
[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
fi
if ! shopt -q login_shell ; then # We're not a login shell
for i in /etc/profile.d/*.sh; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
fi
# vim:ts=4:sw=4
oicqfbi 于 2012-08-10 23:19:22发表:
[root@linux4 ~]# more /etc/profile
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
pathmunge /usr/X11R6/bin after
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
unset pathmung
R=$TMP; export TMPDIR
ORACLE_BASE=/OPT/ORACLE; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=YY; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
oracle_dns=YY; EXPORT ORACLE_DNS
PATH=/usr/sbinPATH; export PATH
PATH=$ORACLE_HOME/binPATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; expor
t PASSPATH
beyondncz 于 2012-08-10 22:52:32发表:
把 /etc/profile: /etc/bashrc: 贴出来看看
奶茶dsk 于 2012-08-10 17:26:59发表:
安装oracle改了gdm什么参数吧
用单用户模式连接进去还原就行了
oicqfbi 于 2012-08-09 22:32:08发表:
.......................