Fedora 20 / Fedora 21: 忘記 Root 密碼 + 重設 root 密碼

人氣點閱:9268
發表人
Fedora 20 / Fedora 21: 忘記 Root 密碼 + 重設 root 密碼 2014-11-05 20:01
/ / /

Fedora 20 / Fedora 21: 忘記 Root 密碼 + 重設 root 密碼



First, Press 'e' enter grub2 to edit ...

Assume ORIGINAL:
代碼:


   linux        /boot/vmlinuz-3.16.3-200.fc20.x86_64 root=UUID=50d20d3d-f\
e1a-4555-8f6a-d12038f35534 ro console=tty0 console=ttyS0,115200



Change "ro" to "rw init=/bin/bash"
代碼:


   linux        /boot/vmlinuz-3.16.3-200.fc20.x86_64 root=UUID=50d20d3d-f\
e1a-4555-8f6a-d12038f35534 rw init=/bin/bash console=tty0 console=ttyS0,115200




Then,
代碼:

(a) passwd root
(b) touch /.autorelabel
(c) /sbin/reboot -f




代碼:


*** Warning -- SELinux targeted policy relabel is required.
*** Relabeling could take a very long time, depending on file
*** system size and speed of hard drives.

10.9%

________________

美術插畫設計案子報價系統 v0.1 Beta
爪哇禾雀