The Standard Way
This procedure gives you a full root shell! You can damage your system if you are not careful!
When booting up press ESC at the grub prompt and use the arrow keys to select the rescue mode option and press enter.
- This will boot the system in rescue mode and you should arrive at a prompt that looks like this
root@something
- To reset your password type this in
passwd <username>
and then enter you new password.
- Once you are done resetting your password you can than switch back to the normal GUI mode by putting this in
init 2
If if appears to boot normally, but you see a message that says:
- Give root password for maintenance (or type Control-D to continue):
then you will have to try a different trick below.
The Other Way
If the "Standard Way" does not work for you and you recieve the "Give root password for maintenance" message, you can recover your password using the following steps
1. Reboot your computer
2. Press ESC at the grub prompt.
3. Select your image.
4. Highlight the line that begins kernel and press 'e' to edit
5. Go to the very end of the line, change the ro to rw and add init=/bin/bash
press enter, then press b to boot your system.
Your system will boot up to a passwordless root shell.
6. Type in passwd username
7. Set your password.
8. Type in reboot
'IT > server' 카테고리의 다른 글
qmail 에서 gmail 네이트 다음 메일 수신 오류 및 문제 (0) | 2017.02.02 |
---|---|
리눅스 네트워크 맥어드레스 매칭 틀릴떄 (0) | 2015.01.21 |
tar 특정 폴더 제외한 cp (0) | 2014.03.04 |
[ubuntu] 대용량 하드 파티션 잡기 및 레이드 ubuntu hard partition raid (0) | 2014.03.03 |
[ubuntu]_iptable geoip 에러 error (0) | 2014.03.03 |