From owner-freebsd-questions Tue Apr 9 2:35:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dns.perimeter.co.za (dns.perimeter.co.za [196.25.164.254]) by hub.freebsd.org (Postfix) with ESMTP id ACF1237B400 for ; Tue, 9 Apr 2002 02:35:33 -0700 (PDT) Received: from PATRICK (loopback.mipjhb [209.212.102.245] (may be forged)) by dns.perimeter.co.za (8.11.1/8.11.1) with SMTP id g399ZNL12554; Tue, 9 Apr 2002 11:35:23 +0200 (SAST) (envelope-from bsd@perimeter.co.za) Message-ID: <01a001c1dfa9$9b3d08a0$b50d030a@PATRICK> From: "Patrick O'Reilly" To: "Martins Struka" , References: <002101c1dfa2$e2ea81c0$0501a8c0@Bastion> Subject: Re: Root problem & Passwords Date: Tue, 9 Apr 2002 11:33:26 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 > ----- Original Message ----- > From: Martins Struka > Dear Sir / Madam, > Our companys e-mail server is runing on FreeBSD. I need to add new accounts and edit exsisting accounts. > 1. What can I do if the superuser root password is missing and the second added user password is not known also? > 2. Is it possible to reinstal FreeBSD not loosing current configuration and data? > What can I do? I am desperate!! Please help me! Martins, To reset the root password: 1) Restart the computer (Ctrl-Alt-Del or Power On). 2) When you see the message counting down from 10 seconds, press Space Bar. 3) when you see the "ok" prompt, type "boot -s" - this provides root acces in single user mode. 4) At the shell prompt type: # fsck -p (File System Check) # mount -u / (mount / partition read/write) # mount -a -t ufs (mount all ufs partitions - /usr ...) # passwd (supply root passwd twice) # shutdown -r now (reboot to multi-user mode again) 5) Once you are able to log in as root again, you can use the passwd command to reset the other user's password. Regards, Patrick O'Reilly. ___ _ __ / _ )__ __ (_)_ __ ___ _/ /____ __ / __/ -_) _) / ~ ) -_), ,-/ -_) _) /_/ \__/_//_/_/~/_/\__/ \__/\__/_/ http://www.perimeter.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message