From owner-freebsd-questions@FreeBSD.ORG Fri May 26 20:59:30 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 DE2EB16A8C8 for ; Fri, 26 May 2006 20:59:30 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E87543D53 for ; Fri, 26 May 2006 20:59:30 +0000 (GMT) (envelope-from wmoran@collaborativefusion.com) Received: from localhost (monrovll-cuda1-24-53-251-44.pittpa.adelphia.net [24.53.251.44]) (AUTH: LOGIN wmoran, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Fri, 26 May 2006 16:59:35 -0400 id 00056405.44776C37.0000E1F4 Date: Fri, 26 May 2006 16:59:28 -0400 From: Bill Moran To: Adrian Pavone Message-Id: <20060526165928.1b255ffc.wmoran@collaborativefusion.com> In-Reply-To: <4477616D.40606@eftel.com> References: <20060526184500.29026.qmail@web54701.mail.yahoo.com> <3ee9ca710605261240o1957520u50075f6ae2d826aa@mail.gmail.com> <4477657D.90701@123.com.sv> <4477616D.40606@eftel.com> Organization: Collaborative Fusion X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: polina_mnouskina@yahoo.com, greenwood.andy@gmail.com, mmiranda@123.com.sv, freebsd-questions@freebsd.org Subject: Re: Problems booting operating system and with 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: Fri, 26 May 2006 20:59:33 -0000 Adrian Pavone wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Miguel wrote: > > Andy Greenwood wrote: > > > >> I don't know what you mean by kernel errors on boot, but you can > >> recover your root password by booting into single user mode and then > >> running passwd. > > > > Hi, i have a similar problem, i forgot my root password and the server > > its in a remote colocation site, is there a way to recover the encrypted > > password and crackit some way, i have my normal account (which is in > > wheel group), i even know that the root's pass begings with > > MAG_"something", but i really cant remember the complete root's pass, > > rebooting in single user mode is my best bet? > > It is easiest if the system's single user mode hasn't been locked down Yes, but that is generally not a good idea at a colo, unless you have some kind of physical security on the box. > If single user mode HAS been locked down (ie. needs the root password), > then you will need a boot disc so you can chroot to your FreeBSD system > from another, or so you can directly edit the /etc/passwd or /etc/shadow > file. FYI: secure single password mode is default: meaning that the system assumes that anyone that can physically access the system should be able to use single user mode without a password. You have to make changes to /etc/ttys to get a paranoid console that asks for a password. > The password hash *MIGHT* also be in one of those two files, depending > on your configuration. Linux, Linux, Linux. FreeBSD has no /etc/shadow. There's /etc/passwd and /etc/master.passwd. The password hash is readible by root only, so that doesn't help if you only have a mortal account. Unless you've specifically set up something else to work around this problem, you _must_ get physical access to fix it. In the future, try installing sudo or using PKI to protect yourself from lost passwords. -- Bill Moran Be calm. Morpheus