API Guide

如果密码处于锁定状态在命令输出中将显示 linuxadmin 后跟 L。通过输入 passwd -u linuxadmin 命令来解锁密码。
root@OS10:~# passwd -S linuxadmin
linuxadmin L 10/01/2018 0 99999 7 -1
root@OS10:~# passwd -u linuxadmin
passwd: password expiry information changed.
9. 在根提示符处输入 linuxadmin 作为用户名。
root@OS10: /# linuxadmin
10. 使用 /opt/dell/os10/bin/recover_linuxadmin_password.sh plain-password 命令配置密码。以纯文本形式输入
linuxadmin 密码。
root@OS10: /# /opt/dell/os10/bin/recover_linuxadmin_password.sh Dell@admin0!@
11. 输入 sync 命令以保存新密码。
root@OS10: /# sync
12. 重新引导系统然后输入新密码。
root@OS10: /# reboot -f
Rebooting.[ 822.327073] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 822.340656] reboot: Restarting system
[ 822.344339] reboot: machine restart
BIOS (Dell Inc) Boot Selector
S6010-ON (SI) 3.20.0.3 (32-port TE/FG)
Identifier
GUID-77D76363-29F4-4DC6-B7D1-205AA0C943E2
Version 1
Status Translation approved
恢复 OS10 用户名密码
如果丢失或忘记了 OS10 的用户名密码包括 admin 密码),则可以通过执行以下步骤来恢复它。
1. 连接到串行控制台端口。串行设置为 115200 波特、8 数据位和无奇偶校验。
2. 重新引导或开启系统。
3. 接受所选的默认引导分区OS10-A OS10-B
+-------------------------------------------+
|*OS10-A |
| OS10-B |
| ONIE |
+-------------------------------------------+
4. 在登录提示符处输入 linuxadmin 用户名和密码。进入 linuxadmin 模式例如
s4048t-1 login: linuxadmin
Password:
Last login: Thu May 2 05:03:40 UTC 2019 on ttyS0
Linux s4048t-1 4.9.82 #1 SMP Debian 4.9.82-1+deb9u3 x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
-* Dell EMC Network Operating System (OS10) *-
-* *-
-* Copyright (c) 1999-2018 by Dell Inc. All Rights Reserved. *-
OS10 故障处理 1343