From owner-freebsd-questions@FreeBSD.ORG Fri May 26 21:27:10 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 C222416BA4A for ; Fri, 26 May 2006 21:27:10 +0000 (UTC) (envelope-from atom.powers@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3863843D5A for ; Fri, 26 May 2006 21:27:09 +0000 (GMT) (envelope-from atom.powers@gmail.com) Received: by nz-out-0102.google.com with SMTP id 9so177237nzo for ; Fri, 26 May 2006 14:27:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Y8NqBJoOZnnX1GLbr0zNtLyXElwuFuNdlP7Vyo/u7Gji0XrgCosCOBsG5Wo7synF+jxm3Q97XjvFBYPKycOXcPJTRlAWwWBisLVYt24BTV73+VeiOSMCqZeRCLnhIgNpvVTjcJIFaR8H5OTDktSIsMwgxVfyKx6j8a6Pq8tQdBI= Received: by 10.65.157.3 with SMTP id j3mr196081qbo; Fri, 26 May 2006 14:27:04 -0700 (PDT) Received: by 10.65.154.19 with HTTP; Fri, 26 May 2006 14:27:04 -0700 (PDT) Message-ID: Date: Fri, 26 May 2006 14:27:04 -0700 From: "Atom Powers" To: Miguel In-Reply-To: <4477720F.2000302@123.com.sv> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060526184500.29026.qmail@web54701.mail.yahoo.com> <3ee9ca710605261240o1957520u50075f6ae2d826aa@mail.gmail.com> <4477657D.90701@123.com.sv> <4477720F.2000302@123.com.sv> Cc: 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 21:27:22 -0000 On 5/26/06, Miguel wrote: > Atom Powers wrote: > > > On 5/26/06, Miguel wrote: > > > >> 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 encrypt= ed > >> 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? > >> > > > > If you are in wheel, then you should be able to "sudo su" to switch to > > the root account and then "passwd root" to reset the password. > > > :-( > No luck, this is the error > > > sudo su > > We trust you have received the usual lecture from the local System > Administrator. It usually boils down to these three things: > > #1) Respect the privacy of others. > #2) Think before you type. > #3) With great power comes great responsibility. > > Password: > mmiranda is not in the sudoers file. This incident will be reported. > > sudo su > mmiranda is not in the sudoers file. This incident will be reported. > > passwd root > passwd: permission denied > > > > I entered my account's password... > > Anything more? > Yes. Check your man pages; the format of the sudoers file is very specific. Usually you can get away with a line like this: -- %wheel=09ALL=3D(ALL)=09ALL -- --=20 -- Perfection is just a word I use occasionally with mustard. --Atom Powers--