1
<?xml version="1.0" encoding="utf-8"?>
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="problem" id="user-forgottenpassword">
5
<link type="guide" xref="user-accounts#passwords"/>
6
<desc>Advanced techniques for resetting your password.</desc>
7
<revision pkgversion="3.0" date="2011-02-22" status="final"/>
8
<revision pkgversion="3.0" version="3.0.1" date="2011-04-15" status="incomplete"/>
10
<name>ग्नोम प्रलेखन परियोजना</name>
11
<email>gnome-doc-list@gnome.org</email>
14
<include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
17
<title>I forgot my password!</title>
18
<comment><cite date="2011-04-03">shaunm</cite><p>Marking final for 3.0.
19
This could use some work for 3.2. There are some less drastic things.
20
Like if there's another admin user on your computer, have them reset
21
your password in the user accounts settings.</p>
22
<p>Also: merge two grubs instructions (almost equal), use clicky-clicky
23
instructions as much as possible, and let's get some real keyring docs
24
integrated in gnome-help then link there.</p>
27
It is important to not only choose <link xref="user-goodpassword">a good and secure password</link>, but one that you can also remember.
28
If you have forgotten the password to log in to your computer account, you can follow the following steps to reset it.
30
<note style="important">
32
If you have an encrypted home directory, you will not be able to reset a forgotten password.
36
If you simply want to change your password, see <link xref="user-changepassword"/>.
39
<links type="section"/>
41
<section id="reset-password-grub2"><title>Reset password on Grub2 systems</title>
45
Restart your computer, and hold down the <key>Shift</key> during bootup to get into the grub menu.
49
If you have a dual-boot machine and you choose at boot time which operating system to boot into, the grub menu should appear without the need to hold down the <key>Shift</key> key.
53
<p>If you are unable to get into the Grub boot menu, and therefore cannot edit any Linux kernel lines, you can <link xref="user-forgottenpassword#live-cd">use a live CD to reset your user password</link>.
59
Press <key>e</key> to edit the line that begins with the word 'linux'. This line may actually be wrapped onto a second line.
64
Add <cmd>init = /bin/sh</cmd> to the end of the line.
69
Press <keyseq><key>Ctrl</key><key> x </key></keyseq> to boot.
74
At the <cmd>#</cmd> symbol, type:
77
<cmd>mount -o remount, rw /</cmd>
82
At the next <cmd>#</cmd> symbol type:
85
<cmd>passwd <var>username</var></cmd>, where <var>username</var> is the username of the account you're changing the password for.
89
Debian systems do not have a <cmd>root</cmd> password. Therefore, on Debian systems you would always be changing the password of a particular username, never root.
95
You will be prompted to enter a new UNIX password, and to confirm the new password.
100
Once the password has been successfully changed:
103
# <cmd>mount -o remount, ro /</cmd>
111
# <cmd>reboot -f</cmd>
116
After you successfully log in, you will not be able to access your keyring (since you don't remember the old password). This means that all your saved passwords for wireless networks, jabber accounts, etc. will no longer be accessible. You will need to <link xref="#delete-keyring">delete the old keyring</link> and start a new one.
119
<section id="reset-password-grub1"><title>Reset password on Grub systems</title>
123
Restart your computer, and press the <key>Esc</key> during bootup to get into the grub menu.
127
If you have a dual-boot machine and you choose at boot time which operating system to boot into, the grub menu should appear without the need to hold down the <key>Esc</key> key.
131
<p>If you are unable to get into the Grub boot menu, and therefore cannot edit any linux kernel lines, you can <link xref="#live-cd">use a live CD</link> to reset your user password.
137
Press <key>e</key> to edit the line that begins with the word 'kernel'. This line may actually be wrapped onto a second line.
142
Add <cmd>init = /bin/sh</cmd> to the end of the line.
147
Press <key>b</key> to boot.
152
At the <cmd>#</cmd> symbol, type:
155
<cmd>mount -o remount, rw /</cmd>
160
At the next <cmd>#</cmd> symbol type:
163
<cmd>passwd <var>username</var></cmd>, where <var>username</var> is the username of the account you're changing the password for.
167
Debian systems do not have a <cmd>root</cmd> password. Therefore, on Debian systems you would always be changing the password of a particular username, never root.
173
You will be prompted to enter a new UNIX password, and to confirm the new password.
178
Once the password has been successfully changed:
181
# <cmd>mount -o remount, ro /</cmd>
189
# <cmd>reboot -f</cmd>
195
After you successfully log in, you will not be able to access your keyring (since you don't remember the old password). This means that all your saved passwords for wireless networks, jabber accounts, etc. will no longer be accessible. You will need to <link xref="#delete-keyring">delete the old keyring</link> and start a new one.
198
<section id="live-cd"><title>Reset password using a Live CD or USB</title>
202
Boot the Live CD or USB.
212
Press <keyseq><key>Alt</key><key>F2</key></keyseq> to get the <gui>Run Application</gui> dialog.
217
Type <cmd>gksudo nautilus</cmd> to launch the file manager with system-wide privileges.
220
<!-- Translators: do not translate the word "home". -->
222
Within the drive you just mounted, you can check that it is the right drive by clicking <gui> home </gui> and then your username.
228
Go to the top-level directory of the mounted drive. Then go into the <gui>etc</gui> directory.
231
Locate the 'shadow' file and make a backup copy:
235
Make sure the <gui>Icon view</gui> is selected.
239
Right-click on the shadow file and select <gui>copy</gui>.
242
Then right-click in the empty space and select <gui>paste</gui>.
246
<link xref="files-rename">Rename</link> the backup "shadow.bak".
254
Edit the original "shadow" file with a text editor.
260
Find your username in for which you have forgotten the password. It should look something like this (the characters after the colon will be different):
263
username:$1$2abCd0E or
266
username:$1$2abCd0E:13721a:0:99999:7:::
271
Replace the characters after the first colon (and before the second colon if it applies) with the hash for a blank password: U6aMy0wojraho
274
Save the file, exit out of everything and reboot your computer without the live CD or USB.
279
When you boot back into your installation, type 'about me' in the <gui>Activities</gui> overview. Open <gui>About Me</gui> and reset your password.
284
For <gui>Current password</gui> do not enter anything, as your current password is blank. Just click <gui>Authenticate</gui> and enter a new password.
290
After you successfully log in, you will not be able to access your keyring (since you don't remember the old password). This means that all your saved passwords for wireless networks, jabber accounts, etc. will no longer be accessible. You will need to <link xref="#delete-keyring">delete the old keyring</link> and start a new one.
295
<section id="delete-keyring">
296
<title>Get Rid of the Keyring Manager</title>
298
<note style="warning"><p>This will delete all your saved passwords for wireless
299
networks, instant messaging accounts, etc. Only do this if you can't remember
300
the password you used for your keyring.</p></note>
304
Go to your Home folder by typing 'home' in the <gui>Activities</gui> overview.
307
Press <keyseq><key>Ctrl</key><key>h</key></keyseq> (or click <guiseq><gui>View</gui><gui>Show Hidden Files</gui></guiseq>.)
310
Double click on the folder .gnome2
313
Double click on the folder called keyrings.
316
Delete any files you find in the keyrings folder.
319
Restart the computer.
323
After you restart and log in you will be asked to enter your wireless networks password.