「VxRail:再起動せずにvCenter Server Applianceのrootパスワードをリセットする

Summary: この記事では、VMware vCenter Server Appliance (VCSA) 6.7 U1、7.x、8.xで再起動せずに、紛失したrootパスワードをリセットする方法について説明します。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

VMware vCenter Server Appliance(VCSA)6.7 U1では、SSOユーザーは SystemConfiguration.BashShellAdministrator Bashにアクセスして実行できる sudo パスワードなしで、ルートへのギャップを埋めます。デフォルトでは、ユーザーはアプライアンス シェルにログインし、シェルを有効にしてBashにアクセスする必要があります。

グループの選択
 
グループを編集してユーザーを追加

VCSAでrootパスワードをリセットするプロセス:

  1. SSH経由でVCSAに接続するには、次を使用してログインします。 administrator@vsphere.localこれは、 vsphere.local はデフォルトのSSOドメインです。​​​​​
  2. 初めてログインする場合は、まずシェルを有効にしてから、「shell」と入力してアクセスします。
shell.set --enable true
shell 
 
シェルの有効化
 
シェル ログインへのアクセス  
  1. シェルの中に入ると、 sso-userで、次のコマンドを実行してrootシェルに切り替えます。  
sudo -i
  1. ログイン試行に複数回失敗したためにrootアカウントがロックされている場合は、次のコマンドを使用してロックを解除します。  
pam_tally2 --user=root --reset
 
リセット 

8.0 U2以降の場合:
/usr/sbin/faillock --user root --reset
 
注: pam_tally2 はPhoton 4で非推奨になりましたので、 faillock を指定します。
 
  1. rootシェルに入ったら、passwdを実行してrootパスワードを変更します。
passwd

または、次のコマンドを使用します。 
sudo passwd root
 
新しいパスワードのリセット
  1. パスワードを更新した後、新しい認証情報を使用してvCenter Server Applianceへのアクセスを確認します。
  2. 今後この問題が発生しないようにするには、次のコマンドを実行してrootパスワードを期限切れにならないように設定します。
chage -I -1 -m 0 -M 99999 -E -1 root  or at the VAMI  ( https://<vcenter_fqdn>:5480)

Additional Information

詳細については、Broadcomの記事「Reset the root password in vCenter Server Appliance without reboot/6.7u1/7.x/8.x (321369)」を参照してください。このハイパーリンクをクリックすると、デル・テクノロジーズ以外のWebサイトにアクセスします。

Article Properties
Article Number: 000302492
Article Type: How To
Last Modified: 06 Apr 2026
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.