From owner-freebsd-questions@FreeBSD.ORG Sat Nov 27 10:55:05 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2905216A4CE for ; Sat, 27 Nov 2004 10:55:05 +0000 (GMT) Received: from amsfep20-int.chello.nl (amsfep20-int.chello.nl [213.46.243.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADFB243D3F for ; Sat, 27 Nov 2004 10:55:03 +0000 (GMT) (envelope-from Danovitsch@vitsch.net) Received: from Vitsch.net ([212.187.78.35]) by amsfep20-int.chello.nl (InterMail vM.6.01.03.05 201-2131-111-107-20040910) with ESMTP id <20041127105501.SUNZ8640.amsfep20-int.chello.nl@Vitsch.net>; Sat, 27 Nov 2004 11:55:01 +0100 Received: from Racebeest.Danovitsch.LAN (b83007.upc-b.chello.nl [212.83.83.7]) by Vitsch.net (8.12.3p2/8.11.3) with ESMTP id iARAsPeD051284; Sat, 27 Nov 2004 11:54:25 +0100 (CET) (envelope-from Danovitsch@vitsch.net) From: "Daan Vreeken [PA4DAN]" To: Andrew Lewis Date: Sat, 27 Nov 2004 11:54:54 +0100 User-Agent: KMail/1.7 References: <1101392541.29769.409.camel@localhost.localdomain> In-Reply-To: <1101392541.29769.409.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411271154.54289.Danovitsch@vitsch.net> cc: FreeBSD-questions@FreeBSD.org Subject: Re: Breaking password on FreeBSD 5.2.1 box X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Nov 2004 10:55:05 -0000 On Thursday 25 November 2004 15:22, Andrew Lewis wrote: > Hi list, > > We have a client running a fBSD 5.2.1 box that needed its root password > hacked. > > I couldn't boot into single user mode w/o the root password, so I > installed fBSD 5.3 on another machine, and slaved the drive from the > 5.2.1 box in mine. > > Then I tried editting its master.passwd file and removing the root > password: didn't work. > > So then I tried setting it to the hash of a password I knew: didn't > work. After you have changed /etc/master.passwd, you have to run pwd_mkdb to generate the new password database. If you have the second disk mounted on /mnt, try this after changing the hashes : pwd_mkdb -d /mnt/etc /mnt/etc/master.passwd > So then I editted /etc/ttys and set 'secure', booted up in single user > mode, ran 'passwd' and it came back with some failure in pam_chauthtok - > I forget the exact message, but it wasn't any more specific than what > I've described. That's probably passwd failing because the root filesystem is mounted read-only in single user mode. Try "mount -a" before you start passwd. > What to do now? Did I do something very wrong? :( Please CC your > response to me (non-subscriber)... > > Thanks... > > Best, > -AL. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"