نمایش نتایج: از شماره 1 تا 4 از مجموع 4
سپاس ها 1سپاس

موضوع: Forget ESXi5 root pass

  
  1. #1
    نام حقيقي: Saeed

    عضو عادی شناسه تصویری greatcyrus
    تاریخ عضویت
    Jan 2010
    محل سکونت
    Tehran
    نوشته
    2,662
    سپاسگزاری شده
    933
    سپاسگزاری کرده
    1248
    نوشته های وبلاگ
    3

    Icon14 Forget ESXi5 root pass

    با درود
    دوستان كسي ميدونه اگه پسورد root در esxi فراموش شد راه حل جز نصب دوباره esxi چيه ؟
    ميشه بازيابي كرد ؟



    موضوعات مشابه:

  2. #2
    نام حقيقي: Ehsan Alimohamadi

    عضو عادی شناسه تصویری alimohamadi
    تاریخ عضویت
    Sep 2009
    محل سکونت
    Qazvin
    نوشته
    436
    سپاسگزاری شده
    366
    سپاسگزاری کرده
    79
    نوشته های وبلاگ
    13
    1) The below image was taken from the console of the ESXi host and the output of cat /etc/shadow shows the encrypted password for the root login. You may wish to record the password hash should you wish to reverse this change.

    2) After the host was shut down, I booted up with the Linux live CD. I then ran the commands fdisk -l and ls -l /mnt/sda5/ / ls -l /mnt/sda6/ to determine the location of the most recent state.tgz file. Note that if you're using ESXi Embedded then you may only see local.tgz instead of state.tgz and you should then copy and recreate that file. In my below example, ESXi was a fresh install so /sda6 has no files but boot.cfg. When booting ESXi on this host, /sda5 would be mounted as /bootbank and /sda6 as /altbootbank.

    3) After determining where the most recent state.tgz file was located, this was copied to /tmp. gzip and tar were then used to extract local.tgz from state.tgz. If you're using ESXi Embedded then you will copy local.tgz to tmp and run gzip and tar on that file. Once local.tar was extracted the cd etc command was run followed by vi shadow.

    4) The below two images show the shadow file before and after editing. Essentially you'll want to have the root entry as root::13358:0:99999:7::: . Once you have removed the password hash, press ESC and to save the change type in :wq and press Enter. You can run cat shadow to confirm that the change was saved successfully.


    5) Once the shadow file has been updated, you'll use cd .. to go back to /tmp and then run tar -czvf local.tgz etc to create the local.tgz file. If you're using ESXi Embedded then you'll copy this file to the drive where it came from in step 3. Otherwise you'll run tar -czvf state.tgz local.tgz to create state.tgz which should then be copied to the correct location. In the below image you'll notice that I don't always use the -v option with the tar command. This option displays a list of all files being processed by the command and would have resulted in larger screen output. It is entirely optional for this process, but can provide a good check to see if the right files are being processed. When running tar to extract the local file, a large number of files will be processed. I've also used the ls -l command a few times in the below image. This was done to ensure that the file copied correctly.

    6) Once the file has been copied back to the /bootbank partition the host can be rebooted back into ESXi. You'll be able to login with the root account with no password and will be greeted with the familiar message to change the root password.



    VMwares سپاسگزاری کرده است.

  3. #3
    نام حقيقي: Saeed

    عضو عادی شناسه تصویری greatcyrus
    تاریخ عضویت
    Jan 2010
    محل سکونت
    Tehran
    نوشته
    2,662
    سپاسگزاری شده
    933
    سپاسگزاری کرده
    1248
    نوشته های وبلاگ
    3
    مرسي آقاي اسي
    اينم بگم كه من esxi رو رو vm آوردم بالا ! اين سلوشن جواب ميده ؟



  4. #4
    نام حقيقي: Ehsan Alimohamadi

    عضو عادی شناسه تصویری alimohamadi
    تاریخ عضویت
    Sep 2009
    محل سکونت
    Qazvin
    نوشته
    436
    سپاسگزاری شده
    366
    سپاسگزاری کرده
    79
    نوشته های وبلاگ
    13
    شما می بایست با یک Linux live CD بوت کنید فرقی هم نمی کنه روی vm باشه یا نباشه



کلمات کلیدی در جستجوها:

ریست کردن پسورد root

esxi5 root password reset shadow

persiannetworks.com esxi5

esxi5 shadow password

فدورا ورود با اکانت root

ریست پسورد esxi

فراموش نمودن پسوردesxi

برچسب برای این موضوع

مجوز های ارسال و ویرایش

  • شما نمی توانید موضوع جدید ارسال کنید
  • شما نمی توانید به پست ها پاسخ دهید
  • شما نمی توانید فایل پیوست ضمیمه کنید
  • شما نمی توانید پست های خود را ویرایش کنید
  •