rh134-第10堂-3 root密碼修改 Post author:leojsp 帖子最後修改:2022 年 11 月 13 日 1、設置 root 密碼 #RHEL9 先改下面設定 vim /boot/grub2/grub.cfg set timeout=5 #sed s/timeout=5/timeout=12/ /boot/grub2/grub.cfg 開機選單e 键 linux 行尾加rd.break(下圖例)ctrl+x mount | grep sysroot 重新掛載系統爲可讀寫 mount -o remount,rw /sysroot/ 切換到系統root目錄 chroot /sysroot 更改root密碼 echo 123 | passwd --stdin root 重貼標籤 touch /.autorelabel exit exit Let's change the world together Share this content Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window 你可能也喜歡 rhcsa exam 2022 年 11 月 24 日 RHA-124 12章 2022 年 10 月 22 日 rhcsa exam2 2022 年 12 月 3 日