Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 May 2000 08:18:37 -0700
From:      "Brian O'Shea" <boshea@ricochet.net>
To:        "Eric S . Van Gyzen" <lists@vangyzen.net>
Cc:        Ahmed Aden <adenbros@hotmail.com>, 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>
In-Reply-To: <20000501102556.B16589@vitaly.vangyzen.net>; from Eric S . Van Gyzen on Mon, May 01, 2000 at 10:25:56AM -0400
References:  <20000501140518.31579.qmail@hotmail.com> <20000501102556.B16589@vitaly.vangyzen.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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