Re: Cannot login to root account on FreeBSD 7.0



--- On Fri, 10/31/08, Pramod Dematagoda <pmd.lotr.gandalf@xxxxxxxxx> wrote:
From: Pramod Dematagoda <pmd.lotr.gandalf@xxxxxxxxx>
Subject: Re: Cannot login to root account on FreeBSD 7.0
To: "Mel" <fbsd.questions@xxxxxxxxxxxxxxxxxxxx>
Cc: "FreeBSD ML" <freebsd-questions@xxxxxxxxxxx>
Date: Friday, October 31, 2008, 11:09 AM
On Fri, 2008-10-31 at 16:00 +0100, Mel wrote:
On Friday 31 October 2008 15:53:23 Pramod Dematagoda
wrote:
On Fri, 2008-10-31 at 07:09 -0700, Jeremy
Chadwick wrote:
On Fri, Oct 31, 2008 at 06:59:04PM +0530,
Pramod Dematagoda wrote:
But now I've faced a big problem, I
can no longer seem to login to the
root account where whenever I supply
the proper credentials to the
login screen, I always get thrown back
to the login screen. This
started happening after I installed
D-bus and HAL through the FreeBSD
ports which were built upon Xorg 1.5.1
which I had built myself
previously, so I am wondering if
something I did may have caused the
problem.

Reboot the machine and at the FreeBSD
beastie/loader menu, hit "4" to
boot into single-user mode. Once there, do:

# mount -a
# mount -o rw -u /
# passwd root

And change the password. "reboot"
and you should be good to go.

Hey Jeremy,

Thanks for looking into the problem, but
unfortunately your solution did
not work, I changed the root password to
something else, however I still
cannot login to root once I boot FreeBSD
normally.

There should be in indication in /var/log/messages or
/var/log/auth.log.

I checked /var/log/messages, and I found something
interesting, it seems
that csh exits with signal 11(core dumped) right after a
root login,
there is nothing out of the ordinary in auth.log. But now
what do I do
to fix the problem, change the shell?

Yeowzers.
Change it to /bin/sh for now. Once you're back up, it'd be interesting to debug this. Would you like to?
- mdh




_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • RE: One method to recover a lost root password
    ... How I recovered a lost root password in FreeBSD ... remove the CD and reboot the original system. ... cgadmin in my case ...
    (freebsd-hackers)
  • Re: One method to recover a lost root password
    ... How I recovered a lost root password in FreeBSD ... remove the CD and reboot the original system. ... cgadmin in my case ...
    (freebsd-hackers)
  • Re: password
    ... To log in as root, ... >> hello ive got a problem login to freebsd. ... passwd: updating the database... ...
    (freebsd-questions)
  • Re: SCO 5.0.7 AS ROUTER
    ... |> | Issued the command after login as root ... |> you reboot, ... said script lacks what the better rc scripts often have, ...
    (comp.unix.sco.misc)
  • SUMMARY: Sparc 20 - Solaris 8 - password recovery
    ... After I deleted the password for the root entry in /etc/shadow and rebooted ... Save it, and reboot. ... I expected to login as root with no password (as I've done ... supportsun20 console login: Type 'go' to resume ...
    (SunManagers)