Hi, This is all about what to do if we forget our Ubantu account Password. It so simple and easy.
1. First, you have to reboot into "recovery mode".
If you have a single-boot (Ubuntu is the only operating system on your computer), to get the
boot menu to show, you have to hold down the "Shift" key during bootup.
From the boot menu, select recovery mode, which is usually the second boot option.
2. After you select recovery mode and wait for all the boot-up processes to finish, there you will
get few options. Select the "Root - Drop to root shell prompt" option, and then press "Enter".
The
root account is the ultimate administrator and
can do anything to the Ubuntu installation and
configuration.
3. In recent versions of Ubuntu, the filesystem is mounted as read-only, so you need to enter the
follow command to get it to remount as read-write, which will allow you to make changes:
mount -o rw, remount /
4. If you have forgotten your username, use the following command to get the list of the users in
Ubantu
ls /home
here 'l' in 'ls' in the lower case 'L' not upper case 'I'
5. In this case lets consider we want to change the password for 'deepak'
6. Its done. On exit you get return back to previous menu. Here, 'Resume' the boot or restart
system.
7. Happy Blogging. :)
1. First, you have to reboot into "recovery mode".
If you have a single-boot (Ubuntu is the only operating system on your computer), to get the
boot menu to show, you have to hold down the "Shift" key during bootup.
From the boot menu, select recovery mode, which is usually the second boot option.
2. After you select recovery mode and wait for all the boot-up processes to finish, there you will
get few options. Select the "Root - Drop to root shell prompt" option, and then press "Enter".
configuration.
3. In recent versions of Ubuntu, the filesystem is mounted as read-only, so you need to enter the
follow command to get it to remount as read-write, which will allow you to make changes:
mount -o rw, remount /
4. If you have forgotten your username, use the following command to get the list of the users in
Ubantu
ls /home
here 'l' in 'ls' in the lower case 'L' not upper case 'I'
5. In this case lets consider we want to change the password for 'deepak'
6. Its done. On exit you get return back to previous menu. Here, 'Resume' the boot or restart
system.
7. Happy Blogging. :)
No comments:
Post a Comment