Re: Lost root access

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



At Wed, 2 Feb 2011 14:44:01 +0000 CentOS mailing list <centos@xxxxxxxxxx> 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.

> 
> (This is past tense because its sorted now but I'm curious if this
> would have worked? And if not, what could I have done?).



> 

-- 
Robert Heller             -- 978-544-6933 / heller@xxxxxxxxxxxx
Deepwoods Software        -- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments


  
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux