Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.erols.net!newsfeed.internetmci.com!news.webspan.net!usenet From: "Jordan K. Hubbard" <jkh@FreeBSD.org> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Can't login as root What to do? Date: Mon, 14 Oct 1996 17:57:19 -0700 Organization: Walnut Creek CDROM Lines: 15 Message-ID: <3262E16F.59E2B600@FreeBSD.org> References: <53sno9$1392@news3.realtime.net> NNTP-Posting-Host: time.cdrom.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01b1 (X11; I; FreeBSD 2.2-CURRENT i386) To: Tushar Patel <tushar@ecpi.com> Tushar Patel wrote: > Please help? [I screwed up my password file] The -s flag to boot: is your friend. Boot into single-user mode with it, and when you're at the # prompt do: # mount -u / # mount -t ufs -a # vipw [fix your password file, write it out] # reboot -- - Jordan Hubbard President, FreeBSD Project