分类: LINUX
2010-10-18 13:55:37
Here is how you can use the Live CD to change the administrative password on your machine if you have lost/forgot the current password. Please note that you can usually boot into and run the passwd command directly.
Press Ctrl-Alt-F1
sudo mount /dev/hda1 /mnt
Depending on your machine it could also be sudo mount /dev/sda1 /mnt. If you created a custom partition layout when installing Ubuntu you have to find your root partition using the fdisk utility. See the section Finding your root partition.
sudo chroot /mnt
You can now use the passwd command to reset a password.
Note: In the mount command, /dev/hda1 will need to be replaced with the partition where the root of the file system resides.
chinaunix网友2010-10-18 15:26:57
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com