[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to change root passwd (if forgotten)



On Thu, Aug 11, 2011 at 08:28:33PM +0100, Dom wrote:
> On 11/08/11 19:46, Walter Hurry wrote:
> >On Thu, 11 Aug 2011 10:23:17 -0400, Nico Kadel-Garcia wrote:
> >
> >>On Wed, Aug 10, 2011 at 11:25 AM, abdelkader belahcene
> >><abelahcene@gmail.com>  wrote:
> >>>Hi,
> >>>I ve forgotten my root passwd on centos 6 (red hat based),
> >>>
> >>>I tried to change it as I used in debian (in debian it works perfectly)
> >>>, that is:
> >>>
> (snippage)
> >
> >All the responses (except one) have me mystified. Why can't OP just boot
> >into single user mode?
>
> Because you need the root password to enter single user mode?

sulogin is easy enough to bypass.

    * Boot Live CD
    * Mount /
    * Edit /etc/inittab
    * Comment out si::sysinit:/etc/init.d/rcS
    * Reboot into single user mode

Much easer than chroots, or any of the other previous suggestion, IMO.

--
. o .   o . o   . . o   o . .   . o .
. . o   . o o   o . o   . o o   . . o
o o o   . o .   . o o   o o .   o o o

Attachment: signature.asc
Description: Digital signature


Reply to: