การแก้ปัญหากรณีลืมรหัสผ่าน root บนระบบ Linux
วิธีแก้ขึ้นอยู่กับว่าเราใช้ระบบการ boot Linux แบบใดโดยปัจจุบันมีให้เลือกสองแบบคือ LILO , GRUB
กรณีระบบบู๊ตแบบ LILO
1. ทำการบู๊ตเครื่องใหม่
2.ขณะที่ขึ้นข้อความว่า boot : linux single < พิมพ์คำนี้เข้าไป
3.จะขึ้นคอมมานด์พร็อมท์เป็น #
4. ทำการเปลี่ยนรหัสผ่าน root ใหม่
# passwd root [enter]
ป้อนรหัสผ่านสองครั้ง
5. พิมพ์ reboot หรือ shutdown -r now [enter] เพื่อทำการบู๊ตเครืองใหม่
กรณีระบบบู๊ตแบบ GRUB
1. ทำการบู๊ตเครื่องใหม่
2. ขณะแสดงเมนูบู๊ตของ GRUB ให้เลือกเมนูบู๊ตเข้า Linux แล้วกดปุ่ม E [enter] เพื่อเข้าหน้าแก้ไขการบู๊ต
3. เลื่อนไปบนบรรทดที่ขึ้นต้นด้วย kernel
4. กดปุ่ม E [enter] เพื่อแก้ไขข้อมูล
5. เคาะ backspace เพื่อเว้นว่าง 1 ครั้ง
6. พิมพ์ single [enter]
7. กดปุ่ม B [enter]
8. จะขึ้นคอมมานด์พร็อมท์เป็น #
9 . ทำการเปลี่ยนรหัสผ่าน root ใหม่
# passwd root [enter]
ป้อนรหัสผ่านสองครั้ง
10 . พิมพ์ reboot หรือ shutdown -r now [enter] เพื่อทำการบู๊ตเครืองใหม่
Resource : http://www.arnut.com/linux/re_password.php
- webmaster's blog
- Login or register to post comments
Post to Twitter












There are certainly different
There are certainly different posts at here,but i didnt find any post related to projects like 312-49 , 640-802 ccna...if someone have information about it,do tell me!Well any updates related to this post?if yes than do tell me!actually i came here while surfing net to get data related to projects of test king and find this post different one...Is there anyone having information about 350-050?if yes than do tell me!any updates?if yes than do tell me!This one seems to me different type of post...one who dont know about it before may get useful information from this post...well i wanna say that The way how you tried to explain some posts at here seems to me different...