From owner-freebsd-questions Tue Apr 9 10:20:39 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id DBA5437B41F for ; Tue, 9 Apr 2002 10:19:41 -0700 (PDT) Received: from hades.hell.gr (patr530-b194.otenet.gr [212.205.244.202]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g39HJZ3Z022769; Tue, 9 Apr 2002 20:19:36 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.2/8.12.2) with ESMTP id g39HJbGI092911; Tue, 9 Apr 2002 20:19:37 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.2/8.12.2/Submit) id g39H9vR4091821; Tue, 9 Apr 2002 20:09:57 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 9 Apr 2002 20:09:56 +0300 From: Giorgos Keramidas To: "Patrick O'Reilly" Cc: Martins Struka , questions@FreeBSD.ORG Subject: Re: Root problem & Passwords Message-ID: <20020409170956.GE67632@hades.hell.gr> References: <002101c1dfa2$e2ea81c0$0501a8c0@Bastion> <01a001c1dfa9$9b3d08a0$b50d030a@PATRICK> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01a001c1dfa9$9b3d08a0$b50d030a@PATRICK> User-Agent: Mutt/1.3.28i 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 On 2002-04-09 11:33, Patrick O'Reilly wrote: > 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 > access 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) Just because I've been bitten by this a few times. Before shutting down, run a few "sync" commands, and wait until the disks spin down. I've changed my rc.conf a couple of times, and rebooted too fast only to find that the changes were not there :-) > # 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. Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message