From owner-freebsd-questions Mon May 1 7:27: 6 2000 Delivered-To: freebsd-questions@freebsd.org Received: from vitaly.vangyzen.net (vitaly.vangyzen.net [205.245.185.194]) by hub.freebsd.org (Postfix) with ESMTP id C975037B680; Mon, 1 May 2000 07:27:00 -0700 (PDT) (envelope-from lists@vitaly.vangyzen.net) Received: (from lists@localhost) by vitaly.vangyzen.net (8.9.3/8.9.3) id KAA32228; Mon, 1 May 2000 10:25:57 -0400 (EDT) Date: Mon, 1 May 2000 10:25:56 -0400 From: "Eric S . Van Gyzen" To: Ahmed Aden 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> References: <20000501140518.31579.qmail@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000501140518.31579.qmail@hotmail.com>; from adenbros@hotmail.com on Mon, May 01, 2000 at 02:05:17PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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-questions" in the body of the message