Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 May 2000 10:25:56 -0400
From:      "Eric S . Van Gyzen" <lists@vangyzen.net>
To:        Ahmed Aden <adenbros@hotmail.com>
Cc:        freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG
Subject:   Re: wrong root shell kicks me out when I login
Message-ID:  <20000501102556.B16589@vitaly.vangyzen.net>
In-Reply-To: <20000501140518.31579.qmail@hotmail.com>; from adenbros@hotmail.com on Mon, May 01, 2000 at 02:05:17PM %2B0000
References:  <20000501140518.31579.qmail@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 01, 2000 at 02:05:17PM +0000, Ahmed Aden wrote:
> Hello,
> 
> By accidentally specifying a bogus path when I did a 'chsh' as root, I
> managed to lock myself out of the 'root' account because as soon as I
> login, it kicks me out.  I tried to boot into single user mode with boot
> -s, but it won't let me write to any files in that mode, and that's the
> only mode I can access the 'root' account.  I'd rather not re-install the
> software, but at this point, I'm out of fresh ideas.  Perhaps there is a
> way to enable disk writing in single user mode, but I'm really not sure
> how that works, I'm not sure I'm on the mailing list, but please e-mail
> aaden@qwestip.net.

Boot into single-user mode and do this to mount the filesystem read-write:
	# mount -o rw /
Actually, just this may work:
	# mount /
(I'm not on a FreeBSD box right now or I'd try it...)

-- 
Eric


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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