oracle 7 密码,【翻译自mos文章】重置Oracle Linux 7中root的口令
发布日期:2021-06-24 11:36:46 浏览次数:2 分类:技术文章

本文共 950 字,大约阅读时间需要 3 分钟。

来源于:Reset Root Password in Oracle Linux 7 (文档 ID 1954652.1)

注意:本文章也适用于RHEL7.x

APPLIES TO:

Linux OS - Version Oracle Linux 7.0 and later

Linux x86

Linux x86-64

GOAL

How to reset root password in Oracle linux 7

SOLUTION

1. While booting GRUB 2 Edit Menu Option (by pressing E)

2. Select the line starts with linux16******* (append "rd.break" at the end of the line), e.g.:

linux16 **** rd.break

3. Press ctrl+x to boot or start.

4. 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 /sysroot5. Type passwd command in the command line and press same password twice for reset root password:

# passwd

6. Make sure that all unlabel files ( including shadow ) get relabeled during booting:

# touch /.autorelabel

7. Type the command to sync:

# sync

8. Type twice exit command to leave & logout.

9. The system will apply some SELinux contexts and reboot.

转载地址:https://blog.csdn.net/weixin_32541663/article/details/116315805 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:php 发送ws 消息,php – Ratchet WebSocket – 立即发送消息
下一篇:php结合golang restful,Golang Gin 实战Ⅱ | 简便的Restful API 实现

发表评论

最新留言

不错!
[***.144.177.141]2024年04月15日 23时23分16秒