How to reset user password on Ubuntu 14.10

Reset password Ubuntu 14.10

After publishing How to reset passwords on Fedora 21 and 22, I thought it was appropriate to do the same for Ubuntu 14.10.

So this tutorial will show how to reset a password on Ubuntu Desktop 14.10. It should also work on earlier editions, like Ubuntu 14.04, and even on the upcoming Ubuntu 15.04.

The obvious reason you might want to reset your password is because you forgot it. If you did not configure full disk encryption and/or password-protect GRUB, the bootloader, anybody with physical access to the computer can reset the password. It’s that simple and a good reason you should always encrypt your disk and password-protect the bootloader.

Now that you know why you should make it impossible for an unauthorized person to reset your Ubuntu Desktop password, let me show you how you can do it, if you ever forget or lose it. Note that attempting to reset the password involves booting into what is known as single user mode. That mode gives you superuser access and privileges.

Related Post:  How to dual-boot Linux Mint 17.2, Windows 10, Windows 8.1 on a PC with UEFI firmware

To begin the process of resetting your password, you, of course, need to have physical access to the computer. So reboot it. When the GRUB splash screen shows, press the ESC key on the keyboard. The GRUB boot window should now be visible. Figure 1 shows what it should look like on a computer with a standalone installation of Ubuntu Desktop 14.10. Select the default entry, if it is not already selected, then press E to edit the options.

BRUB menu Ubuntu 14.10
Figure 1: Entries in the GRUB menu of Ubuntu 14.10.

The editable options for the selected entry should now be visible. You only need to edit one line, but you’ll have to scroll down to see it.

Editable GRUB options Ubuntu 14.10
Figure 2: Editable GRUB options on Ubuntu 14.10.

To scroll down, keep pressing the Down arrow on the keyboard until you see a line that begins with linux, linux16 or linuxefi. Figure 3 shows the line on my test installation.

Single user mode Ubuntu 14.10
Figure 3: The GRUB line that will be edited.

To cause the system to boot into single user mode, you need to append rw init=/bin/bash to that line. Afterwards, reboot by pressing Ctrl X.

BRUB menu Ubuntu 14.10
Figure 4: Append the options for booting into single user mode on Ubuntu 14.10.

The system should reboot into single user mode. You can tell that it has when your screen looks like the one shown in Figure 5. And the command prompt will be that of root, so you have root-user privileges.

Single user mode Ubuntu 14.10
Figure 5: Single user mode on Ubuntu 14.10.

To reset the password, type passwd followed by the target username. In the example shown in Figure 6, I reset the password of a user named kamit. Note that you’ll be prompted to type the password twice. If the password-reset attempt is successful, the system will output passwd: password updated successfully. You may now reboot the computer by typing /sbin/reboot -f

Reset password Ubuntu 14.10
Figure 6: Resetting the password in single user mode on Ubuntu 14.10.

That should do it. This procedure should also work on a distribution like Linux Mint, which is based on Ubuntu.

Related Post:  Note to EFF: FDE implementation in Ubuntu's Ubiquity is only at 50%

Share:

Share on facebook
Facebook
Share on twitter
Twitter
Share on pinterest
Pinterest
Share on linkedin
LinkedIn

Hola! Did you notice that LinuxBSDos.com no longer run network ads?  Yep, no more ads from the usual suspects that track and annoy you across the Internet. But since I still need to pay to keep the site running, feel free to make a small donation by PayPal or your favorite cryptocurrency.

  • Bitcoin
  • Ethereum
  • Xrp
  • Bitcoin cash
  • Bitcoin sv
  • Litecoin
  • Binance coin
  • Cardano
  • Ethereum classic
Scan to Donate Bitcoin to bc1qzvlte2m224zkayhdc7fdfjkp2rsgt0l5a496ua

Donate Bitcoin to this address

Scan the QR code or copy the address below into your wallet to send some Bitcoin

Scan to Donate Ethereum to 0x0F4362DFF77F3Ba0Dc637F5f3Eba35D09a2fA60C

Donate Ethereum to this address

Scan the QR code or copy the address below into your wallet to send some Ethereum

Scan to Donate Xrp to r4ggjvL36njsMCYTkJ3S7cTHscPsMsSGQv

Donate Xrp to this address

Scan the QR code or copy the address below into your wallet to send some Xrp

Scan to Donate Bitcoin cash to qrs0dedzp9t55af3nfwypydghp29r0xguy9s20fz2k

Donate Bitcoin cash to this address

Scan the QR code or copy the address below into your wallet to send some Bitcoin cash

Scan to Donate Bitcoin sv to 15K9TLyVDBtLuG9cYvXCX9SSkq9C9oUKHK

Donate Bitcoin sv to this address

Scan the QR code or copy the address below into your wallet to send some Bitcoin sv

Scan to Donate Litecoin to LetJ9QQMb7u2LMZ9Tu6rtHwcBcQFW98fbG

Donate Litecoin to this address

Scan the QR code or copy the address below into your wallet to send some Litecoin

Scan to Donate Binance coin to bnb1ga8trq08ssqepd90v6225nzfgy448pu5pw8gxp

Donate Binance coin to this address

Scan the QR code or copy the address below into your wallet to send some Binance coin

Scan to Donate Cardano to addr1qx2354yw49etstfljpdhwja3ajjlt487lg95vu9ngy2q6vu4rf2ga2tjhqknlyzmwa9mrm997h20a7stgectxsg5p5esq5l7d9

Donate Cardano to this address

Scan the QR code or copy the address below into your wallet to send some Cardano

Scan to Donate Ethereum classic to 0xcD6CC972a2297FcafACDcfE042C55C69516a9264

Donate Ethereum classic to this address

Scan the QR code or copy the address below into your wallet to send some Ethereum classic

Subscribe for updates. Trust me, no spam!

Sponsored links

1. Attend Algorithm Conference, a top AI and ML event.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.

Upcoming events

4 Responses

  1. Not tried it, but wondering if you could boot from LiveCD, mount the drive, su to root, then chroot to the mounted drive and run passwd from there…..?

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest

On social media
Via my newsletter

Partner links

1. Attend Algorithm Conference, a top AI and ML event for 2021.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.
Hacking, pentesting distributions

Linux Distributions for Hacking

Experts use these Linux distributions for hacking, digital forensics, and pentesting.

Categories
Archives

The authors of these books are confirmed to speak during

Algorithm Conference

T-minus AI

Author was the first chairperson of AI for the U.S. Air Force.

The case for killer robots

Author is the Director of the Center for Natural and Artificial Intelligence.

Why greatness cannot be planned

Author works on AI safety as a Senior Research Scientist at Uber AI Labs.