[CentOS] Lost root access

James Bensley jwbensley at gmail.com
Thu Feb 3 13:02:59 UTC 2011


On 2 Feb 2011 15:07, "Robert Heller" <heller at deepsoft.com> wrote:
>
> At Wed, 2 Feb 2011 14:44:01 +0000 CentOS mailing list <centos at centos.org>
wrote:
>
> >
> > So on a virtual server the root password was no longer working (as in
> > I couldn't ssh in anymore). Only I and one other know it and neither
> > of us have changed it. No other account had the correct privileges to
> > correct this so I'm wondering, if I had mounted that vdi as a
> > secondary device on another VM, browsed the file system and delete
> > /etc/shadow would this have wiped all users passwords meaning I could
> > regain access again?
>
> No, it would not have.  It would have resulted in NOONE having access.
>
> What you could have done is chroot to the secondary device on the other
> VM and then simply reset the root password with the passwd command.
>

Of course! Good idea, thanks.

--James. (This email was sent from a mobile device)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20110203/b8d40a87/attachment.html>


More information about the CentOS mailing list