It is an interesting read. I took it from hackzine.com.
Posted by Jason Striegel | Sep 3, 2008 10:37 PM
I loaded one of my test Ubuntu virtual machines today (one that I hadn't used for a month) and, surprise, I had forgotten the password. This sort of thing happens from time to time, and if you're new to Linux, it can be a little disconcerting.
Losing your root password isn't the end of the world, though. You'll just need to reboot into single user mode to reset it. Here's how to do it on a typical Ubuntu machine with the GRUB bootloader:
Boot Linux into single-user mode
1. Reboot the machine.
2. Press the ESC key while GRUB is loading to enter the menu.
3. If there is a 'recovery mode' option, select it and press 'b' to boot into single user mode.
4. Otherwise, the default boot configuration should be selected. Press 'e' to edit it.
5. Highlight the line that begins with 'kernel'. Press 'e' again to edit this line.
6. At the end of the line, add an additional parameter: 'single'. Hit return to make the change and press 'b' to boot.
Change the admin password
The system should load into single user mode and you'll be left at the command line automatically logged in as root. Type 'passwd' to change the root password or 'passwd someuser' to change the password for your "someuser" admin account.
Reboot
Once your done, give the three finger salute, or enter 'reboot' to restart into your machine's normal configuration.
That's all there is to it. Now just make sure to write your password down on a post-it and shove it somewhere safe like under your keyboard. :)
【诗巫景Ho-KaLiu】诗巫灯会2017
-
配合诗巫旅游年,由诗巫市议会主催,诗巫中华工商总会主办的灯会兼美食节,从10月3日至26日在诗巫第一及第二期广场举行。
关于美食节我就不多说。不过这次的灯会别出心裁,值得一提。
据说这灯会的设计及创作是交由一间来自中国,在马来西亚投资的亚洲太平洋马戏杂技艺术有限公司负责,总共花费了大约30万零吉的重本!建设工...
7 years ago
1 comment:
Too technical for me...
Post a Comment