Re: i can not log as a root
From: Franz Herwitz (franz_at_satx.rr.com)
Date: 09/14/03
- Next message: dave Stanton: "Re: Changing root password?"
- Previous message: Franz Herwitz: "Re: i can not log as a root"
- In reply to: Franz Herwitz: "Re: i can not log as a root"
- Next in thread: gamalt: "Re: i can not log as a root"
- Reply: gamalt: "Re: i can not log as a root"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 14 Sep 2003 06:08:50 GMT
OPPS. Changed method 3 to method 1. Forgot to change elsewhere in post.
Franz
"Franz Herwitz" <franz@satx.rr.com> wrote in message
news:syT8b.5972$z32.5954@twister.austin.rr.com...
>
> "gamalt" <gamalt@juno.com> wrote in message
> news:b9a657e9.0309130331.8a5ad80@posting.google.com...
> > my computer has redhat8.0 and i use it as root and user. recently when
> > i try to log in as a root i get a message " your session lasted less
> > than 10 second and it may a problem in installtion" and push button(
> > view details ~/xsession error file). so when i push the button. i
> > found two messages like that
> > /etc/x11/xdm/xsession/ line 115:/usr/bin/ssh-agent/etc/x11/
> > xinit/xclients no such file or directory
> > /etx/x11/xadm/xsession line 115: exec
> > /usr/bin/ssh-agent/etc/x11/xclient can not execute no such file or
> > directory
> >
> > how i can log as a user but not as a root. successful logging as user
> > only.
> >
> > how can i fix this problem
> > thanks
>
> I'm no guru but I'll give this a shot. If you get a guru answer, use it
> first. Something like this happened once to me also I think this is what
I
> did. Pardon me if I am overly detailed - I prefer my instructions like I
am
> a 6 year old so I give them this way also.
>
> Problem seems to be with the X session not your login but we'll try a few
> things.
>
> You are going to have to log into a terminal either by
> *when GRUB (I'm assuming your using GRUB) is still active before boot
> select the OS/kernel that you boot to(use arrow keys then enter key), type
> 'e' to get edit mode and then add 'linux 3' to the end of the command
line.
> This is your best option as you jump between boots with runlevel 3 and 5
> (text and graphical).
> or
> logon as user into graphical environment then ctrl-alt-F2 then login
as
> root or user in text mode
> or
> login as user and opening a terminal in your graphic environment
>
> The last option is preferred as no graphical sessions will be running but
> all will get you to the command line environment so you can do tests 1,3
and
> 4.
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> #1 Try this first - a longshot
> Using one of above login as (or su to) root. If you can't, then there is
a
> problem with your password and you'll need to reboot into single user mode
> to fix. That's another issue. If this is the case, stop here and repost
to
> news that you lost your password for root and need help. Good news is
this
> should be an easy fix.
>
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> #2 If you booted using the third method (changing GRUB command lines)
good,
> if not reboot using that method. Login as root and type 'startx'. If this
> doesn't work, skip to the next test.
>
> If you get into X like this but not with a normal boot I would suspect
your
> display manger is freaking. Go to the file /etc/sysconfig/desktop and add
> or alter this line to change display managers.
>
> DISPLAYMANAGER="GNOME"
>
> You can try substituting "KDE" and "XDM" for GNOME and reboot normally
> (runlevel 5) each time. If this worked fine, if not you may still want to
> try #3
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> #3 OK if that didn't work, try this.
> Looks like something is wrong with your Xsessions script or one of the
files
> it calls. (I'm pretty sure this is your problem.)
>
> So that you boot to a text login for now edit the line in file
/etc/inittab
> to read
> id:3:initdefault (just change the 5 to a 3) You can change this
back
> later.
>
> Once you've gotten in text mode (any method) and are root go to /root and
> rename any of these files .Xclients .Xclients-default
> .Xclients-localhost.localdomain:0 and .Xclients-yourhostname:0 - just put
> and extra x in the name somewhere so you can undo this later.
>
> go to /home/whateveryourusernameis directory
>
> copy .Xclients and .Xclients-default from user's directory to /root
> directory
>
> Try 'startx' now. This should give the Xsessions script working
information
> before it reaches the part where is now hungup. If this works you will
boot
> into the same environment as your user (KDE or Gnome). You can change
this
> later (assuming you have both )
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> #4
> If this doesn't work open Xsession and see if these lines are present
> elif [ -x :$HOME/.Xclients" ]; then
> exec -l $SHELL -c "$SSHAGENT $HOME/.Xclients"
> These are lines 114 and 115 in my Xsessions so it is possible that these
are
> missing from yours. These should come before the line...
> elif [ -x /etc/X11/xinit/Xclients]; then
> If these lines aren't there add them, save the file and reboot.
>
> If this didn't work then delete the two files you copied to /root and
rename
> the others to their original names. Change your /etc/inittab back (change
> the 3 back to 5). I really think that there is something wrong with
Xsession
> script or one of the scripts / files it relies on. Keep checking your post
> and hope a guru answers.
>
> Hope this helps and good luck,
> Franc
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.516 / Virus Database: 313 - Release Date: 9/2/2003
>
>
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.516 / Virus Database: 313 - Release Date: 9/2/2003
- Next message: dave Stanton: "Re: Changing root password?"
- Previous message: Franz Herwitz: "Re: i can not log as a root"
- In reply to: Franz Herwitz: "Re: i can not log as a root"
- Next in thread: gamalt: "Re: i can not log as a root"
- Reply: gamalt: "Re: i can not log as a root"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]