From owner-freebsd-questions Sun Aug 4 21:10:10 2002 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 0D8C537B400; Sun, 4 Aug 2002 21:10:01 -0700 (PDT) Received: from pd2mo3so.prod.shaw.ca (h24-71-223-10.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B19C43E70; Sun, 4 Aug 2002 21:10:00 -0700 (PDT) (envelope-from desmond.lee@shaw.ca) Received: from pd4mr1so.prod.shaw.ca (pd4mr1so-qfe3.prod.shaw.ca [10.0.141.212]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H0C009DURKNLC@l-daemon>; Sun, 04 Aug 2002 22:09:59 -0600 (MDT) Received: from pn2ml7so.prod.shaw.ca (pn2ml7so-qfe0.prod.shaw.ca [10.0.121.151]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H0C00D65RKO1Q@l-daemon>; Sun, 04 Aug 2002 22:10:00 -0600 (MDT) Received: from wetworks (h24-77-108-85.vc.shawcable.net [24.77.108.85]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with SMTP id <0H0C00ECLRKALZ@l-daemon>; Sun, 04 Aug 2002 22:10:00 -0600 (MDT) Date: Sun, 04 Aug 2002 21:13:10 -0700 From: Desmond Lee Subject: RE: root unkown? In-reply-to: <20020805034634.GL83171@wantadilla.lemis.com> To: Greg 'groggy' Lehey Cc: freebsd-questions Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi greg What's the live file system? If i don't have it, can you tell me how i can get my hands on it? The old /etc/group and /etc/master.passwd are in the /var/backups/ but when i copied them over to /etc/ and rebooted nothing happened? Should i then execute pwd_mkdb, or am i just talking nonsense? Um... i have a freebsd 4.4 installation cd that came with the book i bought, but is that of any use? thanks Desmond -----Original Message----- From: Greg 'groggy' Lehey [mailto:grog@freebsd.org] Sent: Sunday, August 04, 2002 8:47 PM To: Desmond Lee Cc: freebsd-questions Subject: Re: root unkown? [removing -newbies; they're not a technical list] On Sunday, 4 August 2002 at 20:42:36 -0700, Desmond Lee wrote: > Hi there > > I can't log into my machine because i hosed the /etc/group and the > /etc/master.passwd files while doing an upgrade. > > Anywho, i'm looking at the freebsd faq , 10.14. I have forgotten the root > password! What do I do?, to try and change the root password. But when i do > 'passwd root' i get a message like 'passwd: Unkown user root". Right, that's what you do when you've lost the password. If you've lost the user, you'll have to restore it. You should be able to do it like this: 1. Boot into single user mode. 2. Mount the live file system CD-ROM. 3. Copy the files /etc/group and /etc/master.passwd to their correct place. 4. Run: # pwd_mkdb /etc/master.passwd This will give you a root user with no password. You should obviously fix that as soon as possible. If you don't have the live file system, they're on the installation ISO as well, but that's more work. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message