From owner-freebsd-net Mon May 1 8: 8:53 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.rdc1.sfba.home.com (ha1.rdc1.sfba.home.com [24.0.0.66]) by hub.freebsd.org (Postfix) with ESMTP id 7B90837BAD9; Mon, 1 May 2000 08:08:47 -0700 (PDT) (envelope-from boshea@ricochet.net) Received: from beastie.localdomain ([24.19.158.41]) by mail.rdc1.sfba.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <20000501150847.IAUO25138.mail.rdc1.sfba.home.com@beastie.localdomain>; Mon, 1 May 2000 08:08:47 -0700 Received: (from brian@localhost) by beastie.localdomain (8.9.3/8.8.7) id IAA40486; Mon, 1 May 2000 08:18:37 -0700 (PDT) (envelope-from brian) Date: Mon, 1 May 2000 08:18:37 -0700 From: "Brian O'Shea" To: "Eric S . Van Gyzen" Cc: Ahmed Aden , freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: wrong root shell kicks me out when I login Message-ID: <20000501081837.U337@beastie.localdomain> Reply-To: boshea@ricochet.net Mail-Followup-To: "Eric S . Van Gyzen" , Ahmed Aden , freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG References: <20000501140518.31579.qmail@hotmail.com> <20000501102556.B16589@vitaly.vangyzen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <20000501102556.B16589@vitaly.vangyzen.net>; from Eric S . Van Gyzen on Mon, May 01, 2000 at 10:25:56AM -0400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, May 01, 2000 at 10:25:56AM -0400, Eric S . Van Gyzen wrote: > > Boot into single-user mode and do this to mount the filesystem read-write: > # mount -o rw / > Actually, just this may work: > # mount / You'll want to specify the -u flag to mount, which indecates that the mount options of an already mounted filesystem should be changed. (in single-user mode) # mount -u / Then mount /usr and /var : # mount /usr # mount /var Then use vipw to edit the password file, correcting the path for root's login shell. Good luck, -brian -- Brian O'Shea boshea@ricochet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message