运维联盟俱乐部

 找回密码
 立即注册
查看: 1877|回复: 0

reset root's password for X7-2+

[复制链接]

该用户从未签到

发表于 2022-3-4 19:43:08 | 显示全部楼层 |阅读模式
From step 2 below all commands have to be executed on System Console (either directly sitting in front of the physical system with console screen attached, via SSH remote SP console or Web Based ILOM remote console option.

  1.Reboot via the ILOM web interface either:
  ○via the web interface:
  ■For current ILOM versions:
  ■go to "Host Management", at "Power Control" choose 'Power Cycle" for "Settings"
  ■For older ILOM versions:
  ■go to "System Overview", at "Host Power" choose 'Power Cycle"
  ■From ILOM web interface start remote console by going to Remote Control -> Launch Remote Console
  ○via ssh remote SP console:
  ■reset /SYS
  ■start /SP/console
  2.On the ILOM web console or ssh remote SP console: when the Grub Menu screen appears, immediately hit the arrow down key. Please note, here is a short window for this , so carefully watch the screen.
  3.Select the proper line to boot from and press "p" to supply the GRUB password .  (<get password from support by filing an SR>)
  4.Press the "e" key to edit the boot entry
  5.Using the down arrow, select the line that starts with "linuxefi", then press the "e" key to edit
  6.At the grub2 line starting with "linuxefi" add at the end the following string: rd.break
  7.Press ctrl+x to boot or start
  8.First we will remount the sysroot file system in read and write mode and then use chroot to got into a chroot jail:
# mount -o remount,rw /sysroot
# chroot /sysroot

  9.Type passwd command in the command line and press same password twice for reset root password:
# passwd
  10.Make sure that all unlabel files ( including shadow ) get relabeled during booting:
# touch /.autorelabel
  11.Type the command to sync:
# sync
  12. Reboot or power cycle the system.


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

运维联盟俱乐部 ( 冀ICP备19036648号 )

GMT+8, 2024-5-12 04:45 , Processed in 0.046993 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表