Posts Tagged ‘reset’
Resetting an account password on Ubuntu Linux is unexpectedly easy to do, you don't even need any tools or anything for it. To start, go into the GRUB menu by pressing Shift while booting. In the menu, enter the Recovery Mode option:
You will be presented a window with quite a few options of which the root command line is what we want. Go down to the menu item named root and hit Enter.
If the command line opens without problems, proceed with the following command (if it prompts you for a root password which you don't have, see here):
mount -o remount,rw /
Replace [your_user_name] with the name of the user you want to change the password of. Enter and confirm a new password on the next prompts and reboot your computer afterwards.
Resetting your systems root password may be a necessary step if you have forgotten it or have bought a used computer which you don't want to setup anew. Doing so without any installation medium saves you a blank CD and a bit of time.
To start, restart your computer and get to the GRUB menu by pressing Shift while booting. Point your cursor to the Recovery mode option:
Press e to edit the boot options. There, look for a line that looks like this: linux /boot/vmlinuz-3.2.0-18-generic root=UUID=b8b64ed1-ae94-43c6-92\d2-a19dfd9a727e ro recovery nomodeset:
The line will differ depending on your version and kernel but should have about the same syntax. Remove the last part of line which is ro recovery nomodeset and replace it with rw init=/bin/bash:
This will cause a command line to be opened on startup. Press F10 now to reboot the machine and get to the command line. Once you are there, enter:
/usr/sbin/usermod -p '!' root
(If you get an error by copying and pasting above command, try replacing the quotation marks.) Now reboot the machine and the root password should be reset. The changes you did to the boot options will also reset automatically, so you do not have to change them back.