[NTLUG:Discuss] resetting root password (was: locked account)
Neil Aggarwal
neil at JAMMConsulting.com
Wed Jun 29 11:19:01 CDT 2005
Robert:
Here is what I do:
Boot into single user mode, this gives me a root shell without asking
for the password.
Type passwd root to change the password.
Once done, type exit and the system will boot and the root password
will be set to the new one you gave.
Neil
--
Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
> -----Original Message-----
> From: discuss-bounces at ntlug.org
> [mailto:discuss-bounces at ntlug.org] On Behalf Of Robert Citek
> Sent: Wednesday, June 29, 2005 7:58 AM
> To: NTLUG List
> Subject: [NTLUG:Discuss] resetting root password (was: locked account)
>
>
>
> On Jun 27, 2005, at 10:26 AM, brad angelcyk wrote:
> > I had a box (Redhat 7.1) a few years ago that I couldn't
> remember the
> > root password, so I threw a brute force attack at it. It
> never locked
> > me out from this. But then I put the drive in another box
> and cleared
> > the password from /etc/shadow.
>
> Since you mention clearing /etc/shadow, I was curious to know how
> else could one reset a mangled or forgotten root password?
>
> Some thoughts:
>
> - reboot into single user mode. boot: linux 1
> - reboot, bypassing init. boot: linux init=/bin/bash
> - setup sudo, although I dunno if rh71 had sudo.
>
> Any other ideas?
>
> Regards,
> - Robert
> http://www.cwelug.org/downloads
> Help others get OpenSource software. Distribute FLOSS
> for Windows, Linux, *BSD, and MacOS X with BitTorrent
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list