VCSA, problem z hasłem root-a

VMware

VCSA to Linux z aplikacjami VMware. Lokalne konta użytkownika podlegają tym samym restrykcją, jak w “zwykłym” Linuksie. Dodatkowo w przypadku restartu hasła (root) postępujemy wg utartego schematu restartu systemu, przejścia w tryb single user, uruchomienia i restartu hasła.

Jednak jak w każdym produkcie są różne szczegóły o których trzeba pamiętać.

  1. grub jest zabezpiezony hasłem. Żeby się dostać do single user należy znać hasło “vmware” lub ew. ostatnie hasło root, jeśli było zmieniane (sic!) — i to ma sens tylko w przypadku gdy hasło nam wygasło. Jeśli zupełnie nie pamiętamy hasła to zostaje nam livecd.
  2. w single user po zmianie hasła zanim zrestartujemy system trzeba wykonać polecenia:
    mkfifo /dev/initctl
    reboot -f
  3. System root może znajdować się tylko w trybie read-only. Aby go przełączyć do trybu rw należy wydać następujące polecenie:
    mount -o remount,rw /
  4. W przypadku zablokowania hasła na wskutek niepoprawnych prób logowania należy pamiętać o wyzerowaniu licznika  (https://kb.vmware.com/s/article/2045805):
    pam_tally2 --user username

    przykład:

         pam_tally2 --user root --reset 
         pam_tally2 --user root 
    

    Uwaga: wszystkie polecenia mogą być w “niedomyślnej” ścieżce. Zwykle trzeba je szukać w ścieżce /sbin (/sbin/pam_tally2)

  5. Z webClienta możemy zmienić termin ważności hasła dla root-a, oraz złożoność polityki haseł (dla domeny vsphere.local – generalnie)
  6. Zmiana czasu po jakim konto się blokuje:
     chage -M ilosc_dni

    weryfikacja

     chage -l root

    (poprosi o hasło jeśli konto było zablokowane).

Źródła:

Document update: 10.04.2019.

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

VMware
VCF, backup configuration

Backup implementation for VMware component is fairly easy. Just the requirements is to configure SFTP server in proper way and make it network available to the VMware components. SDDC Manager and NSX Manager backup In VCF Operations it is possible to configure backup for SDDC Manager and NSX Manager. Go …

VMware
VCF Automation, fresh environment configuration with identity providers and access control.

Introduction Login Login as user admin to the Organization name: system or if selected manual: Check the connections (in Administration section), where you should see connection to the vCenter and NSX-t manager as those are provided automatically via VCF Operations: the same for VCF Instances: Also check your networking: Identity …

VMware
VCF SoS

SoS (Supportability and Serviceability) command can be used for troubleshooting purpose to generate VCF (per component) log bundle, massively enable/disable ssh service on ESXi, vCenter, password and certificates expiry status, verify cluster health and many other. while troubleshooting, the following commands can be helpful: