Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 May 2006 05:47:12 +0800
From:      Adrian Pavone <wingot@eftel.com>
To:        Atom Powers <atom.powers@gmail.com>
Cc:        Miguel <mmiranda@123.com.sv>, freebsd-questions@freebsd.org
Subject:   Re: Problems booting operating system and with root password
Message-ID:  <44777760.9080507@eftel.com>
In-Reply-To: <df9ac37c0605261427o66835598na8d9c08291617fcd@mail.gmail.com>
References:  <20060526184500.29026.qmail@web54701.mail.yahoo.com>	<3ee9ca710605261240o1957520u50075f6ae2d826aa@mail.gmail.com>	<4477657D.90701@123.com.sv>	<df9ac37c0605261352x4e8bdca9u605c2d95ff0215fc@mail.gmail.com>	<4477720F.2000302@123.com.sv> <df9ac37c0605261427o66835598na8d9c08291617fcd@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Atom Powers wrote:
> On 5/26/06, Miguel <mmiranda@123.com.sv> wrote:
>> Atom Powers wrote:
>>
>> > On 5/26/06, Miguel <mmiranda@123.com.sv> 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
>> 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?
>> >>
>> >
>> > 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    ALL=(ALL)    ALL
> -- 
> 
> 

Altough can't only root modify (write changes to) the sudoers file? As
he is trying to get access to root (without a root password), this is
not possible from what I can see.

Regards,
Adrian

- --
This email address has expired. Please contact me for my new address.

Please obtain my pgp public key from pgp.mit.edu before sending me any
private mail, otherwise your email will likely be filtered incorrectly
and possibly junked.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEd3df0JHtFv5fxW8RAp0cAKCi/heobdYqmxpzHKMtePDWIu/mNQCfcyv4
xVFzVVSEbi87KwN4M8nSOEI=
=hYYJ
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44777760.9080507>