Home >> Resource >>Password >> Forgot Linux Password

Forgot Linux Password – What Can I Do

Jul. 9, 2014 9:12 am / Posted by Shawn Hamilton to Password
Follow @ShawnHamilton

Last night, when I was wondering about on the Internet, I found that some people are really confused about forgetting Linux password. So I decide to write this article "what can I do if I forgot my Linux password". I hope this can be helpful for these people.

P.S.: Forgot password in Windows 8.1/8/7/XP/Vista, Windows Password Reset Tool can help reset the password efficiently.

The main part referring to reset Linux password when the Linux password was forgotten will be divided into two aspects:

Free Trial Windows Password Recovery Tool :

Size: 53.8MB

1. What is Linux Operating System?

As many people are not very familiar with Linux Operating System, here I'd like to introduce Linux Operating System at first.

Linux Operating System (Linux OS), is an open operating system. It is a freely cross-platform operating based on Unix and can be installed on PCs, laptops, networks, mobile and tablet devices, servers etc.

2. What to Do When Linux Forgot Password?

As Linux Operating System consists of two kinds of password: user password and root password, here I will show you what you can do if forgot Linux password from two different parts. Read on, please.

Part 1. Lost Root Password in Linux

If you forgot root password in Linux by accident, you can follow the guide below to retrieve the password. The process can be finished only with 2 steps. But the 1st step needs to change on the basis of the distro of Linux.

Premise: make sure you are offline, which can protect your PC from potential Internet-borne attack while you are repairing the password.

Step 1. This step varies from distro to distro.

Step 2. After finishing the Step 1, type "# cd /etc" at the prompt

And follow steps below to change "passwd" and "shadow" two files.

Step 3. Now you can reboot your computer and log in as a normal user, open a console and type "$ su # passwd". Then set the new root password and log out as root.

lost root password in linux

Part 2. Forgot User Password in Linux

Premise: you know your root password. (If you can't remember your root password, go back to Part 1 to recover it.)

Following are detailed steps that you can take when forgot Linux user password.

Now, all steps to reset password for Linux when you forgot Linux password have been displayed here. It may be a little complicated. But read carefully and follow the step-by-step guide, you can finish the retrieving process.

Free Trial Windows Password Recovery Tool :

Size: 53.8MB
comments powered by Disqus
Hot Tips
Reset ASUS Password
Reset Gateway Password
Hack HP Computer with Ease
Reset Lenovo Password
Dell Latitude Password Reset
Reset Administrator Password
Forgot Dell Inspiron Password
Reset Sony Vaio Laptop Password
PC Unlocker to Recover Forgotten Password
Reset Your Windows Password in Regedit at Boot
Hot Topics
Windows 10 Password
Windows 8.1/8 Password
Windows 7 Password
Other Windows Password
Windows Issues Fix
Social Connection

Copyright © 2007-2016 Tenorshare Co.,Ltd. All Rights Reserved.

Forgot Linux Password – What Can I Do