Date: Thu, 16 Apr 1998 11:34:33 +0100 From: Karl Pielorz <kpielorz@tdx.co.uk> To: Stuart Clarke <s334761@student.uq.edu.au> Cc: questions@FreeBSD.ORG Subject: Re: shell. URGENT URGENT URGENT Message-ID: <3535DEB9.8D546310@tdx.co.uk> References: <3535D946.751A8624@student.uq.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Boot the machine in single-user mode (i.e. at the boot: prompt when the machines restarted type '-s' and press return)... The machine will startup - and then prompt with "Enter path to shell or ENTER for /bin/sh" (or similar) - press return... This will give you a root shell... Next do: mount -u / (which makes the root filesystem read/write), and then you should be able to do a 'chpass') Once you've edited the details either restart the machine (i.e. shutdown -r now) or just exit the shell... -- Does anyone know if this is on the www.freebsd.org site anywhere? - Seems to be asked a lot recently... ;-) -- Regards, Karl Pielorz Stuart Clarke wrote: > > Allright boys and girls, here's a doozy: > > I was logged in as root, and was playing around (using chpass) with what shell I > was using. I accidentally typed in the wrong path to a shell and now I can't > login as root any more (it says that it can't find the shell, and returns to the > login prompt). > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3535DEB9.8D546310>