2 Replies Latest reply on Aug 9, 2010 10:28 AM by petedr

    /etc/passwd gone

    Wimo Expert

      We have made changes to our passwd and sudoers files because of organizational changes.  So one of our admins had the job of copying the old one and adding the new one.  But, on 3 hosts, he did mv instead of cp when trying to rename the old passwd.  So now there is no passwd file, and no one can log in.


      The good news is, these three 2.5 hosts each only have one VM on them - we are migrating off.  And 2 of the 3 hosts are still connected to VC, so we may be okay anyway.  But the third one is disconnected and of course I can't add it back now.


      Is this just a simple matter of doing the same thing you would do if you needed to reset the root password (boot to single user mode etc.) or is there more to it?  Or are we just out of luck?  In that case I think we can still recover by just shutting down that one VM and creating a new one on another host with the same disk files.

        • 1. Re: /etc/passwd gone
          sabya1232003 Hot Shot


          There is no other way than reseting the root passowrd ..with the same method method followed for Linux passwd recovery.Since you are in the process of migrating its better you shut down the VM and move it to the other hosts and follow the steps for upgrading VM hardware,Vmware tools and then Power ON.



          Once the VM is back in to action  you can try out reseting the passwd for the ESX



          • 2. Re: /etc/passwd gone
            petedr Virtuoso
            User Moderators


            Is there a file /etc/passwd-pr/etc/password.OLD on diskl. If so you maybe able to rename it back to /etc/passwd once you can login as root again.





            www.phdvirtual.com, makers of PHD Virtual Backup for Vmware and Xen Server, formally esXpress