Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 2003 09:27:21 -0700
From:      Joshua Oreman <oremanj@get-linux.org>
To:        Dave Banning <sky_tracker@yahoo.com>
Cc:        questions@freebsd.org
Subject:   Re: can't login as anyone - not even as root!
Message-ID:  <20030828162721.GB19417@webserver>
In-Reply-To: <20030828162047.32781.qmail@web12807.mail.yahoo.com>
References:  <20030828162047.32781.qmail@web12807.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 28, 2003 at 09:20:47AM -0700 or thereabouts, Dave Banning wrote:
> All of a sudden, I can't login, even as root. I tried to set the 
> password of root to nil (because I happened to be logged in as root at
> the time) and that didn't work either.
> 
> Then, thinking that the machine was acting up, I rebooted. Now I am in 
> deeper. I can't even access the machine.
> 
> Any idea why this would happen, or more important, how I can get out?

Ctrl+Alt+Del
[if you get the fancy menu, choose "boot in single-user mode"; otherwise...]
Booting [kernel] in 9 seconds... <press space>
OK boot -s
[ ... ]

use /bin/sh
fsck -p
mount -a
ktrace -o /root/login.out login root
Password: <type your root password>
Login failed
<press Ctrl+C>
kdump /root/login.out | mail freebsd-questions@freebsd.org -s "Re: can't login as anyone - not even as root!"

Note: my syntax for kdump/ktrace may be a bit off, see their man pages.

-- Josh

> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030828162721.GB19417>