OS10システムのパスワード回復を行う方法

Summary: 状況によっては、ユーザーがOS10ユーザー「admin」とLinuxユーザー「linuxadmin」の両方のパスワードを忘れた場合、ユーザーはOS10にログインできません。

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

ローカル管理者が他のシステム管理ユーザー(OS10およびLinuxユーザー)を設定していない場合、アクセスするにはパスワードの回復を試行する必要があります。

アクティビティー中にスイッチを複数回(3回以上)再起動する必要があるため、パスワード リカバリー操作のメンテナンス ウィンドウをスケジュールする必要があります。

OS10ユーザー ガイドには、この状況に対処するための同様の手順が「OS10のトラブルシューティング」にあります。OS10ユーザー(admin)とLinux管理者(linuxadmin)の両方のパスワードを忘れた場合は、最初にGRUBからlinuxadminパスワードを回復する必要があります。

OS10ユーザー(admin)パスワードは、linuxadminによってLinuxカーネルからリカバリーできます。

OS10ユーザー(admin)パスワードのみを忘れた場合は、コンソールが不要なため、操作が簡単になります。SSHまたはTelnetを介してlinuxadminを使用してLinuxカーネルにログインし、管理者ユーザーのパスワードをリセットします。
 
注:このガイドでは、バージョン10.5.4.0および10.5.0.6での操作をデモとして示します。お客様の場合は、実行中のバージョンをお客様に確認してください。

パスワードのリカバリー中にスイッチを複数回(3回以上)再起動するため、次の操作を実行するにはメンテナンス ウィンドウを適用する 必要があります
 
注:この手順は、コンソール接続で実行する必要があります。
 
ステップ 1 シリアル コンソール ポートに接続します。
シリアル設定を115200ボーレート、8データ ビット、パリティーなしに設定します。
スイッチの電源をオフにしてからスイッチの電源をオンにして、スイッチを再起動します。

ステップ 2 次の出力が表示されたら E を押して、OS10 GRUB エディター メニューを開きます。

GNU GRUB エディタメニュー

次に、以下のようにOS10 GRUBエディターメニューを表示します。 
 
注:バージョンが異なれば、GRUBエディタメニューも異なる場合があります。

新しいバージョン、たとえば10.5.2.x以降の場合は、次のように表示されます。

GNU GRUBエディター メニュー10.5.2.x以降

古いバージョン、たとえば10.5.0.x以前の場合は、次のように表示されます。

GNU GRUB エディタメニュー 10.5.0.x 以前

ステップ 3 ブート動作を設定するには、次の変更を行います。
新しいバージョン、たとえば10.5.2.x以降の場合は、矢印キーを使用して、次の行の末尾に移動します。 set os_debug_args=をクリックし、 init=/bin/bash 最後まで。

GNU GRUB エディターメニュー 10.5.2.x 以降のコマンド init=/bin/bash

10.5.0.x以前の古いバージョンの場合は、矢印キーを使用して「linux」で始まる行の末尾に移動し、 init=/bin/bash 行の末尾にあります。

GNU GRUB エディターメニュー 10.5.0.x 以前の init=/bin/bash コマンド

Ctrl + xまたはAlt + 0(0は数字の0)を押して、スイッチを再起動します。システムは、パスワード なしでrootシェル(OS10 Linuxカーネル)で起動します。

新しいバージョンの場合、たとえば10.5.2.x以降です。

Booting a command list
Loading OS10 ...
AF, 
DXE_EXIT_BOOT_SERVICES(03101019)
B0, B1, [    1.193068] intel_rapl: driver does not support CPU family 6 model 77
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
root@OS10:/#

GNU GRUB エディタメニュー 10.5.2.x 以降のブートコマンドリスト

古いバージョン、たとえば10.5.0.x以前の場合は、次のようになります。

GNU GRUB エディタメニュー 10.5.0.x 以前のブートコマンドリスト

ステップ 4 Linux ユーザ「linuxadmin」のステータスを確認します。

root@OS10:/# 
root@OS10:/# cat /etc/passwd | grep linuxadmin
linuxadmin:x:1000:1000:,,,:/home/linuxadmin:/bin/bash      ------// if there's NO "/bin/bash", reset it with below command, 
root@OS10:/#
root@OS10:/# usermod -s /bin/bash linuxadmin      ------// reset the login shell mode, 
usermod: no changes      ------// it's already correct, so no changes, 
root@OS10:/#

Linuxユーザー「linuxadmin」がロックされているかどうかを確認し、ロックされている場合はロックを解除します。

root@OS10:/# 
root@OS10:/# passwd -S linuxadmin
linuxadmin L 07/22/2022 0 99999 7 -1      ------// 'L' means user locked, 
root@OS10:/# 
root@OS10:/# passwd -u linuxadmin       ------// unlock the user, 
passwd: password expiry information changed.
root@OS10:/# 
root@OS10:/# passwd -S linuxadmin      ------// check again, it's correct user status, 
linuxadmin P 07/22/2022 0 99999 7 -1
root@OS10:/#

ステップ 5 Linux ユーザ「linuxadmin」のパスワードをリセットします。

root@OS10:/#
root@OS10:/# passwd linuxadmin      ------// reset user "linuxadmin" password,
New password: <reset password with the user name : linuxadmin>
Retype new password: <retype new password : linuxadmin>
passwd: password updated successfully
root@OS10:/#
root@OS10:/# sync      ------// synchronize system to save the new password,
root@OS10:/#
After password recovery done, please remember to reset the linuxadmin password manually 
in running-configurations later as below : 
OS10(config)# system-user linuxadmin password [retype your new password]
OS10(config)# exit
OS10# write memory
OS10#

Another preferred method is to use script as below : 
Notes : the script will also update the new linuxadmin password in "startup.xml". 

If the OS10 version is 10.5.1.0, then run the following command. 
root@OS10: /# sed -ibak '31,41s/^/#/g' /opt/dell/os10/
bin/recover_linuxadmin_password.sh

Configure the password by using the script command : 
root@OS10:/# /opt/dell/os10/bin/recover_linuxadmin_password.sh [plainpassword]
Notes: Enter the linuxadmin password in plain text. 
For example : 
root@OS10:/# /opt/dell/os10/bin/recover_linuxadmin_password.sh P@ssw0rd123!
root@OS10:/# 
root@OS10:/# sync      ------// synchronize system to save the new password, 
root@OS10:/#

手順 6 システムを強制的に再起動します。

root@OS10:/# 
root@OS10:/# reboot -f       ------// force switch to reboot, 
Rebooting.
[  417.428659] reboot: Restarting system
15, 00068001, 19, 00068000, 
BIOS Boot Selector for S4100 
Version 3.33.0.1-12
...<output omitted>... 

Then try login with Linux user "linuxadmin" and new password "linuxadmin" as below. 
OS10 login: linuxadmin
Password: linuxadmin
Linux OS10 4.19.208 #1d SMP Debian 4.19.208-1 x86_64
...<output omitted>... 
linuxadmin@OS10:~$ 
   ------// login to the kernel shell mode directly, password recovered successfully to the default (the same as user name),

ユーザー「linuxadmin」でLinuxカーネルにログインに成功しました

ユーザー「linuxadmin」でLinuxカーネルに正常にログインします。

手順7:OS10ユーザー「admin」のパスワードをリセットします。

linuxadmin@OS10:~$ 
linuxadmin@OS10:~$ sudo -i      ------// get the root permission, 
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.
[sudo] password for linuxadmin: 
root@OS10:~#

ユーザー「linuxadmin」がログインしました

root@OS10:~# passwd -S admin      ------// check and make sure user status, not locked, 
admin P 07/25/2022 0 99999 7 -1
root@OS10:~#

root@OS10:~# cat /etc/passwd | grep admin
...<output omitted>... 
admin:x:1003:997::/config/home/admin:/opt/dell/os10/bin/clish
      ------// check the shell mode and make sure it's "/opt/dell/os10/bin/clish", 
root@OS10:~# 

Reset password, 
root@OS10:~# 
root@OS10:~# passwd admin
New password: <reset the password with user name : admin>
BAD PASSWORD: it is too short
BAD PASSWORD: is too simple
Retype new password: <retype the password : admin>
passwd: password updated successfully
root@OS10:~#

ステップ 8 終了し、ユーザ「admin」でログインしてみてください。

OS10 login: admin
Password: admin
Last login: Mon Jul 25 05:21:56 UTC 2022 on ttyS0
Linux OS10 4.19.208 #1d SMP Debian 4.19.208-1 x86_64
...<output omitted>... 
%Warning : Default password for admin account should be changed to secure the system
%Warning : Default password for linuxadmin account should be changed to secure the system.
OS10# 
   ------// login to the OS10 shell mode, password recovered successfully to the default (the same as user name),

ログインOS10シェルの成功

ユーザー「admin」でOS10シェルに正常にログインします。

%Warningログに注意してください。自分で選択した新しいパスワードを設定する必要があります。新しいパスワードを覚えておいてください。

ステップ 9 新しいパスワードを users または admin として設定します。

OS10# 
OS10# configure terminal
OS10(config)# 
OS10(config)# service simple-password      ------// this is optional, if want to set simple password. 
OS10(config)# 
OS10(config)# username admin password <input customer's password> role sysadmin
OS10(config)# 
OS10(config)# system-user linuxadmin <input customer's password> linuxadmin
OS10(config)# 
OS10(config)# end
OS10# write memory      ------// save changed configuration, DO NOT forget the new password !!!! 
OS10#

Affected Products

SmartFabric OS10 Software

Products

PowerSwitch, Dell EMC Networking MX5108n, Dell EMC Networking MX9116n
Article Properties
Article Number: 000201897
Article Type: How To
Last Modified: 04 Dec 2025
Version:  9
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.