*BSD News Article 69184


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.sdsmt.edu!nntp.uac.net!news.tufts.edu!blanket.mitre.org!news.mathworks.com!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!jraynard.demon.co.uk!jraynard.demon.co.uk!james
From: james@jraynard.demon.co.uk (James Raynard)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: HELP: lost root passwd
Date: 23 May 1996 01:42:25 GMT
Organization: A FreeBSD-current box
Lines: 29
Message-ID: <4o0fq1$c6c@jraynard.demon.co.uk>
References: <slegter.832754504@ruunat.fys.ruu.nl>
NNTP-Posting-Host: localhost.demon.co.uk
X-NNTP-Posting-Host: jraynard.demon.co.uk
Cc: slegter@fys.ruu.nl
X-Newsreader: TIN [version 1.2 PL2]

Tom Slegter (slegter@fys.ruu.nl) wrote:

: Everyting went well until I was so stupid to use chpass to change my
: root password. I typed it unencrypted !! 
: Consequently I cannot login as root anymore.

: How can I become root again so I can change the password file again.

Hmm, I think you meant encrypted there... 8-)

Anyway, here's what to do:-

1. Reboot.
2. Type -s at the 'boot: ' prompt. Unless you edited /etc/ttys to make
   the console secure, you will be dropped into single-user mode without
   being asked for a password.
3. 'mount -u -o rw /' to allow you to write to the root partition.
4. 'vipw' to edit the password file - delete the incorrect password.
5. Run 'passwd' to set the correct password.
6. Type 'exit' to get out of single-user mode.

: Please send answers directly to slegter@fys.ruu.nl

Cc'd as requested.

--
James Raynard, Edinburgh, Scotland
jraynard@dial.pipex.com
james@jraynard.demon.co.uk