From owner-freebsd-questions@FreeBSD.ORG Mon Oct 27 08:12:21 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18E1C1065671 for ; Mon, 27 Oct 2008 08:12:21 +0000 (UTC) (envelope-from stupendoussteve@hotmail.com) Received: from bay0-omc3-s32.bay0.hotmail.com (bay0-omc3-s32.bay0.hotmail.com [65.54.246.232]) by mx1.freebsd.org (Postfix) with ESMTP id 03EC28FC1F for ; Mon, 27 Oct 2008 08:12:20 +0000 (UTC) (envelope-from stupendoussteve@hotmail.com) Received: from hotmail.com ([207.46.10.243]) by bay0-omc3-s32.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 27 Oct 2008 01:12:20 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 27 Oct 2008 01:12:20 -0700 Message-ID: Received: from 207.46.10.254 by by122fd.bay122.hotmail.msn.com with HTTP; Mon, 27 Oct 2008 08:12:19 GMT X-Originating-IP: [68.225.143.90] X-Originating-Email: [stupendoussteve@hotmail.com] X-Sender: stupendoussteve@hotmail.com From: "Steven Susbauer" To: freebsd-questions@freebsd.org Date: Mon, 27 Oct 2008 02:12:19 -0600 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 27 Oct 2008 08:12:20.0326 (UTC) FILETIME=[BBCBC860:01C9380B] Cc: mlopezqc@gmail.com Subject: Re: How to restore a lost root password... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 08:12:21 -0000 Mauricio López wrote: >On Sun, Oct 26, 2008 at 4:08 PM, Daniel Bye > wrote: >>On Sun, Oct 26, 2008 at 09:18:25PM +0100, Rada alive wrote: >>>>I have seen a "How to" about this but I have a problem, i set the >>>>console >>>>to insecure, so when I try to do the step of the "how to" i get a >>>>message >>>>to input the root password or Ctrl-D to enter in multiuser mode. >>>What happened to just booting into single-user mode and issuing passwd? >>The OP made a point of letting us know that he has marked his console >>`insecure' in /etc/ttys. In order to even get a shell in single user, >>he needs the root password. >> > >As far as I know, from my previous Linux experience, you just need a >LiveCD in order to boot the PC, mount the / partition, edit >/etc/passwd or /etc/shadow and change the hash for one that correspond >to one we know. Perhaps you can make it in every UNIX. > Mauricio López wrote: >On Sun, Oct 26, 2008 at 4:08 PM, Daniel Bye > wrote: >>On Sun, Oct 26, 2008 at 09:18:25PM +0100, Rada alive wrote: >>>>I have seen a "How to" about this but I have a problem, i set the console >>>>to insecure, so when I try to do the step of the "how to" i get a message >>>>to input the root password or Ctrl-D to enter in multiuser mode. >>>What happened to just booting into single-user mode and issuing passwd? >>The OP made a point of letting us know that he has marked his console >>`insecure' in /etc/ttys. In order to even get a shell in single user, >>he needs the root password. >> > >As far as I know, from my previous Linux experience, you just need a >LiveCD in order to boot the PC, mount the / partition, edit >/etc/passwd or /etc/shadow and change the hash for one that correspond >to one we know. Perhaps you can make it in every UNIX. > This is similar to what Matthew Seaman was mentioning. I am curious though, might it be possible to boot from something like Freesbie (or a fixit disc), mount the drive, chroot to the actual install and run passwd like normal to change the password? Does root on FreeBSD ask to verify the old password when trying to change its own?