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