~ubuntu-branches/ubuntu/precise/gnome-user-docs/precise

« back to all changes in this revision

Viewing changes to gnome-help/hi/user-forgottenpassword.page

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2011-09-12 09:23:35 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: package-import@ubuntu.com-20110912092335-11udas9xjsi3g6n0
Tags: 3.1.1-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="utf-8"?>
2
 
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="problem" id="user-forgottenpassword">
3
 
 
4
 
  <info>
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"/>
9
 
    <credit type="author">
10
 
      <name>ग्नोम प्रलेखन परियोजना</name>
11
 
      <email>gnome-doc-list@gnome.org</email>
12
 
    </credit>
13
 
 
14
 
    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
15
 
  </info>
16
 
 
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>
25
 
</comment>
26
 
  <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.
29
 
  </p>
30
 
  <note style="important">
31
 
  <p>
32
 
     If you have an encrypted home directory, you will not be able to reset a forgotten password.
33
 
  </p>
34
 
  </note>
35
 
  <p>
36
 
  If you simply want to change your password, see <link xref="user-changepassword"/>.
37
 
  </p>
38
 
 
39
 
  <links type="section"/>
40
 
 
41
 
  <section id="reset-password-grub2"><title>Reset password on Grub2 systems</title>
42
 
     <steps>
43
 
         <item>
44
 
           <p>
45
 
           Restart your computer, and hold down the <key>Shift</key> during bootup to get into the grub menu.
46
 
           </p>
47
 
           <note style="tip">
48
 
           <p>
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.
50
 
           </p>
51
 
           </note>
52
 
           <note>
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>.
54
 
           </p>
55
 
           </note>
56
 
          </item>
57
 
          <item>
58
 
           <p>
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.
60
 
           </p>
61
 
          </item>
62
 
          <item>
63
 
           <p>
64
 
           Add <cmd>init = /bin/sh</cmd> to the end of the line.
65
 
           </p>
66
 
          </item>
67
 
          <item>
68
 
           <p>
69
 
           Press <keyseq><key>Ctrl</key><key> x </key></keyseq> to boot.
70
 
           </p>
71
 
          </item>
72
 
          <item>
73
 
           <p>
74
 
           At the <cmd>#</cmd> symbol, type:
75
 
           </p>
76
 
           <p>
77
 
           <cmd>mount -o remount, rw /</cmd>
78
 
           </p>
79
 
          </item>
80
 
          <item>
81
 
           <p>
82
 
           At the next <cmd>#</cmd> symbol type:
83
 
           </p>
84
 
           <p>
85
 
           <cmd>passwd <var>username</var></cmd>, where <var>username</var> is the username of the account you're changing the password for.
86
 
           </p>
87
 
           <note>
88
 
           <p>
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.
90
 
           </p>
91
 
           </note>
92
 
          </item>
93
 
          <item>
94
 
           <p>
95
 
           You will be prompted to enter a new UNIX password, and to confirm the new password.
96
 
           </p>
97
 
          </item>
98
 
          <item>
99
 
           <p>
100
 
           Once the password has been successfully changed:
101
 
           </p>
102
 
           <p>
103
 
           # <cmd>mount -o remount, ro /</cmd>
104
 
           </p>
105
 
          </item>
106
 
          <item>
107
 
           <p>
108
 
           Then:
109
 
           </p>
110
 
           <p>
111
 
           # <cmd>reboot -f</cmd>
112
 
           </p>
113
 
          </item>
114
 
     </steps>
115
 
     <p>
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.
117
 
     </p>
118
 
  </section>
119
 
    <section id="reset-password-grub1"><title>Reset password on Grub systems</title>
120
 
     <steps>
121
 
         <item>
122
 
           <p>
123
 
           Restart your computer, and press the <key>Esc</key> during bootup to get into the grub menu.
124
 
           </p>
125
 
           <note style="tip">
126
 
           <p>
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.
128
 
           </p>
129
 
           </note>
130
 
           <note>
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.
132
 
           </p>
133
 
           </note>
134
 
          </item>
135
 
          <item>
136
 
           <p>
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.
138
 
           </p>
139
 
          </item>
140
 
          <item>
141
 
           <p>
142
 
           Add <cmd>init = /bin/sh</cmd> to the end of the line.
143
 
           </p>
144
 
          </item>
145
 
          <item>
146
 
           <p>
147
 
           Press <key>b</key> to boot.
148
 
           </p>
149
 
          </item>
150
 
          <item>
151
 
           <p>
152
 
           At the <cmd>#</cmd> symbol, type:
153
 
           </p>
154
 
           <p>
155
 
           <cmd>mount -o remount, rw /</cmd>
156
 
           </p>
157
 
          </item>
158
 
          <item>
159
 
           <p>
160
 
           At the next <cmd>#</cmd> symbol type:
161
 
           </p>
162
 
           <p>
163
 
           <cmd>passwd <var>username</var></cmd>, where <var>username</var> is the username of the account you're changing the password for.
164
 
           </p>
165
 
           <note>
166
 
           <p>
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.
168
 
           </p>
169
 
           </note>
170
 
          </item>
171
 
          <item>
172
 
           <p>
173
 
           You will be prompted to enter a new UNIX password, and to confirm the new password.
174
 
           </p>
175
 
          </item>
176
 
          <item>
177
 
           <p>
178
 
           Once the password has been successfully changed:
179
 
           </p>
180
 
           <p>
181
 
           # <cmd>mount -o remount, ro /</cmd>
182
 
           </p>
183
 
          </item>
184
 
          <item>
185
 
           <p>
186
 
           Then:
187
 
           </p>
188
 
           <p>
189
 
           # <cmd>reboot -f</cmd>
190
 
           </p>
191
 
          </item>
192
 
 
193
 
     </steps>
194
 
     <p>
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.
196
 
     </p>
197
 
  </section>
198
 
    <section id="live-cd"><title>Reset password using a Live CD or USB</title>
199
 
     <steps>
200
 
         <item>
201
 
           <p>
202
 
           Boot the Live CD or USB.
203
 
           </p>
204
 
          </item>
205
 
          <item>
206
 
           <p>
207
 
           Mount your drive.
208
 
           </p>
209
 
          </item>
210
 
          <item>
211
 
           <p>
212
 
           Press <keyseq><key>Alt</key><key>F2</key></keyseq> to get the <gui>Run Application</gui> dialog.
213
 
           </p>
214
 
          </item>
215
 
          <item>
216
 
           <p>
217
 
           Type <cmd>gksudo nautilus</cmd> to launch the file manager with system-wide privileges.
218
 
           </p>
219
 
           <note style="tip">
220
 
           <!-- Translators: do not translate the word "home". -->
221
 
           <p>
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.
223
 
           </p>
224
 
           </note>
225
 
          </item>
226
 
          <item>
227
 
           <p>
228
 
           Go to the top-level directory of the mounted drive.  Then go into the <gui>etc</gui> directory.
229
 
           </p>
230
 
           <p>
231
 
           Locate the 'shadow' file and make a backup copy:
232
 
           </p>
233
 
           <steps>
234
 
           <item><p>
235
 
           Make sure the <gui>Icon view</gui> is selected.
236
 
           </p></item>
237
 
 
238
 
           <item><p>
239
 
           Right-click on the shadow file and select <gui>copy</gui>.
240
 
           </p></item>
241
 
           <item><p>
242
 
            Then right-click in the empty space and select <gui>paste</gui>.
243
 
           </p></item>
244
 
 
245
 
           <item><p>
246
 
                      <link xref="files-rename">Rename</link> the backup "shadow.bak".
247
 
           </p></item>
248
 
           </steps>
249
 
          </item>
250
 
 
251
 
 
252
 
          <item>
253
 
           <p>
254
 
           Edit the original "shadow" file with a text editor.
255
 
           </p>
256
 
          </item>
257
 
 
258
 
          <item>
259
 
           <p>
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):
261
 
           </p>
262
 
           <p>
263
 
           username:$1$2abCd0E or
264
 
           </p>
265
 
            <p>
266
 
           username:$1$2abCd0E:13721a:0:99999:7:::
267
 
           </p>
268
 
          </item>
269
 
          <item>
270
 
           <p>
271
 
        Replace the characters after the first colon (and before the second colon if it applies) with the hash for a blank password: U6aMy0wojraho
272
 
           </p>
273
 
           <p>
274
 
           Save the file, exit out of everything and reboot your computer without the live CD or USB.
275
 
           </p>
276
 
          </item>
277
 
          <item>
278
 
           <p>
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.
280
 
           </p>
281
 
          </item>
282
 
          <item>
283
 
          <p>
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. 
285
 
          </p>
286
 
          </item>
287
 
 
288
 
     </steps>
289
 
     <p>
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.
291
 
     </p>
292
 
  </section>
293
 
 
294
 
 
295
 
  <section id="delete-keyring">
296
 
    <title>Get Rid of the Keyring Manager</title>
297
 
 
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>
301
 
 
302
 
  <steps>
303
 
   <item><p>
304
 
    Go to your Home folder by typing 'home' in the <gui>Activities</gui> overview.
305
 
   </p></item>
306
 
   <item><p>
307
 
    Press <keyseq><key>Ctrl</key><key>h</key></keyseq> (or click <guiseq><gui>View</gui><gui>Show Hidden Files</gui></guiseq>.)
308
 
   </p></item>
309
 
   <item><p>
310
 
    Double click on the folder .gnome2
311
 
   </p></item>
312
 
   <item><p>
313
 
   Double click on the folder called keyrings.
314
 
   </p></item>
315
 
   <item><p>
316
 
   Delete any files you find in the keyrings folder.
317
 
   </p></item>
318
 
   <item><p>
319
 
   Restart the computer.
320
 
   </p></item>
321
 
 </steps>
322
 
<p>
323
 
After you restart and log in you will be asked to enter your wireless networks password.
324
 
</p>
325
 
  </section>
326
 
 
327
 
</page>