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) 비밀번호를 모두 잊은 경우 linuxadmin 비밀번호를 먼저 GRUB에서 복구해야 합니다.

그런 다음 linuxadmin이 Linux 커널에서 OS10 사용자(관리자) 암호를 복구할 수 있습니다.

OS10 사용자(admin) 암호만 잊어버린 경우 콘솔이 필요하지 않으므로 작업이 간단합니다. linuxadmin을 사용하여 SSH 또는 Telnet을 통해 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 이상 command 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)을 눌러 스위치를 재부팅합니다. 시스템이 비밀번호 없이 루트 셸(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 커널에 로그인합니다.

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:~#

사용자

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 : 새 비밀번호를 사용자 또는 관리자로 설정합니다.

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.