通常會需要進入 Single User Mode 有幾種情形:
1.忘記 root 密碼,前任管理員離職時,沒有交接 root 密碼
2.root密碼正確,但是無法登入,可能是 SELinux 或是 PAM 造成
3.備份或是還原
以下步驟是在 RHEL 6.0 Server 64位元,KVM環境下:
1.
2.
3.
4.
5.
6.
7.
8.
文章出處: https://andersonwang.wordpress.com/2011/06/27/rhel-6-0-%E5%A6%82%E4%BD%95%E9%80%B2%E5%85%A5-single-user-mode%EF%BC%9F/