<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Linux: Recovering deleted /etc/shadow password file</title>
	<atom:link href="http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html</link>
	<description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description>
	<lastBuildDate>Mon, 15 Mar 2010 05:00:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: hitmars</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-150513</link>
		<dc:creator>hitmars</dc:creator>
		<pubDate>Fri, 04 Sep 2009 09:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-150513</guid>
		<description>Hi, erery1:
     I  followed to step 3, and then I touch a file named shadow  in /etc, then edit it as follow:
          root::12823:0:99999:7:::
     does it mean that everyone can modify the password of root and get the privildge?</description>
		<content:encoded><![CDATA[<p>Hi, erery1:<br />
     I  followed to step 3, and then I touch a file named shadow  in /etc, then edit it as follow:<br />
          root::12823:0:99999:7:::<br />
     does it mean that everyone can modify the password of root and get the privildge?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: red</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-147871</link>
		<dc:creator>red</dc:creator>
		<pubDate>Fri, 27 Mar 2009 01:17:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-147871</guid>
		<description>Hi,
This command didn&#039;t worked for SME 7. 
cat /proc/kcore &#124; strings &#124; egrep &quot;^([^:]*:){8}[^:]*$” &gt; 
/tmp/kcore-dump

I accidentally deleted /etc/samba/passwd file. I don&#039;t have any backup for this file and I don&#039;t know how to recover it.

Please help.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,<br />
This command didn&#8217;t worked for SME 7.<br />
cat /proc/kcore | strings | egrep &#8220;^([^:]*:){8}[^:]*$” &gt;<br />
/tmp/kcore-dump</p>
<p>I accidentally deleted /etc/samba/passwd file. I don&#8217;t have any backup for this file and I don&#8217;t know how to recover it.</p>
<p>Please help.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Furthur</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-146206</link>
		<dc:creator>Furthur</dc:creator>
		<pubDate>Fri, 12 Dec 2008 16:48:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-146206</guid>
		<description>Thank you very much! Very helpful.

I would however put the last bit about recovering from your backup *before* the batch generation. For smaller system it is seems alot easier to simple cp back the shadow file. 

thanks again!</description>
		<content:encoded><![CDATA[<p>Thank you very much! Very helpful.</p>
<p>I would however put the last bit about recovering from your backup *before* the batch generation. For smaller system it is seems alot easier to simple cp back the shadow file. </p>
<p>thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajeet</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-144791</link>
		<dc:creator>Ajeet</dc:creator>
		<pubDate>Thu, 28 Aug 2008 11:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-144791</guid>
		<description>I dint see any pwconv command on my system now.
Can Anyone please help me with this long stucked issue?</description>
		<content:encoded><![CDATA[<p>I dint see any pwconv command on my system now.<br />
Can Anyone please help me with this long stucked issue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajeet Singh</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-143887</link>
		<dc:creator>Ajeet Singh</dc:creator>
		<pubDate>Mon, 26 May 2008 06:57:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-143887</guid>
		<description>I followed above doc
and ran :

1. Rebooted
2. Edit Recovery Mode : with init=/bin/bash
3. mount -rw -o remount /
4. Edited /etc/passwd file(Surprisingly nano editor was working but vi dint)
5. Moved passwd- to passwd and moved shadow- to shadow.
6. Forcibly rebooted.

Now it seems to work. But it displays:

I have no name!@micex:~$


Why it is displaying so??</description>
		<content:encoded><![CDATA[<p>I followed above doc<br />
and ran :</p>
<p>1. Rebooted<br />
2. Edit Recovery Mode : with init=/bin/bash<br />
3. mount -rw -o remount /<br />
4. Edited /etc/passwd file(Surprisingly nano editor was working but vi dint)<br />
5. Moved passwd- to passwd and moved shadow- to shadow.<br />
6. Forcibly rebooted.</p>
<p>Now it seems to work. But it displays:</p>
<p>I have no name!@micex:~$</p>
<p>Why it is displaying so??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nils</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-143272</link>
		<dc:creator>nils</dc:creator>
		<pubDate>Tue, 25 Mar 2008 16:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-143272</guid>
		<description>If the file /etc/shadow is deleted, but the computer is still running and you still have root access, it might be possible to regenerate it from memory similar to the following approach:
&lt;code&gt;
cat /proc/kcore &#124; strings &#124; egrep &quot;^([^:]*:){8}[^:]*$&quot; &gt; /tmp/kcore-dump
&lt;/code&gt;
Now you have a file which might include the contents of the deleted /etc/shadow. Now you have to take a text editor and extract the correct lines. Special care has to be taken because the contents might be incomplete or even wrong.</description>
		<content:encoded><![CDATA[<p>If the file /etc/shadow is deleted, but the computer is still running and you still have root access, it might be possible to regenerate it from memory similar to the following approach:<br />
<code><br />
cat /proc/kcore | strings | egrep "^([^:]*:){8}[^:]*$" &gt; /tmp/kcore-dump<br />
</code><br />
Now you have a file which might include the contents of the deleted /etc/shadow. Now you have to take a text editor and extract the correct lines. Special care has to be taken because the contents might be incomplete or even wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajesh</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-141128</link>
		<dc:creator>rajesh</dc:creator>
		<pubDate>Mon, 17 Sep 2007 10:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-141128</guid>
		<description>Guys,
I have different problem. I accidentally deleted /etc/passwd file. Now i am not able to login to any user mode. My operating system is SCO Unix. Please Help me.

regards,
Rajesh</description>
		<content:encoded><![CDATA[<p>Guys,<br />
I have different problem. I accidentally deleted /etc/passwd file. Now i am not able to login to any user mode. My operating system is SCO Unix. Please Help me.</p>
<p>regards,<br />
Rajesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: monk</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19394</link>
		<dc:creator>monk</dc:creator>
		<pubDate>Wed, 28 Dec 2005 11:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19394</guid>
		<description>&lt;I&gt;&gt;Alejandro said...
&gt;You&#039;re regenerating /etc/shadow, not recovering it from a delete. You don&#039;t (becuase you can&#039;t) recover user passwords.  And, just as a question, which is the probability of losing only /etc/shadow and not your whole disk?&lt;/I&gt;

Yup it is regenerating or it creates /etc/shadow from /etc/passwd and an optionally existing shadow. As I said earlier, file deleted by mistake. 

&lt;I&gt; &gt;And a question 2: if a user as root deleted /etc/shadow, which is the probability that he do dd if=/dev/zero of=/dev/sda??&lt;/I&gt;

I am sorry but I am not getting your point here. Sure root can run dd and destroy entire disk. That is what I said at the bottom, “I guess it explains the important of regular backup of both data and key files.”. Since this server was 3rd party hosted in our IDC. It is not managed by us. Customer itself managing the server and they did not have a backup copy of /etc/shadow file; all they got was backup of mysql and ftp server. Moreover, ftpserver was working fine because proftpd was build using MySQL database for authentication and quota management. Therefore, I had to restore /etc/shadow file :)

I hope this clears picture.</description>
		<content:encoded><![CDATA[<p><i>&gt;Alejandro said&#8230;<br />
&gt;You&#8217;re regenerating /etc/shadow, not recovering it from a delete. You don&#8217;t (becuase you can&#8217;t) recover user passwords.  And, just as a question, which is the probability of losing only /etc/shadow and not your whole disk?</i></p>
<p>Yup it is regenerating or it creates /etc/shadow from /etc/passwd and an optionally existing shadow. As I said earlier, file deleted by mistake. </p>
<p><i> &gt;And a question 2: if a user as root deleted /etc/shadow, which is the probability that he do dd if=/dev/zero of=/dev/sda??</i></p>
<p>I am sorry but I am not getting your point here. Sure root can run dd and destroy entire disk. That is what I said at the bottom, “I guess it explains the important of regular backup of both data and key files.”. Since this server was 3rd party hosted in our IDC. It is not managed by us. Customer itself managing the server and they did not have a backup copy of /etc/shadow file; all they got was backup of mysql and ftp server. Moreover, ftpserver was working fine because proftpd was build using MySQL database for authentication and quota management. Therefore, I had to restore /etc/shadow file :)</p>
<p>I hope this clears picture.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alejandro</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19393</link>
		<dc:creator>Alejandro</dc:creator>
		<pubDate>Wed, 28 Dec 2005 08:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19393</guid>
		<description>You&#039;re regenerating /etc/shadow, not recovering it from a delete. You don&#039;t (becuase you can&#039;t) recover user passwords. 

And, just as a question, which is the probability of losing only /etc/shadow and not your whole disk? 

And a question 2: if a user as root deleted /etc/shadow, which is the probability that he do 
dd if=/dev/zero of=/dev/sda??</description>
		<content:encoded><![CDATA[<p>You&#8217;re regenerating /etc/shadow, not recovering it from a delete. You don&#8217;t (becuase you can&#8217;t) recover user passwords. </p>
<p>And, just as a question, which is the probability of losing only /etc/shadow and not your whole disk? </p>
<p>And a question 2: if a user as root deleted /etc/shadow, which is the probability that he do<br />
dd if=/dev/zero of=/dev/sda??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: monk</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19392</link>
		<dc:creator>monk</dc:creator>
		<pubDate>Tue, 27 Dec 2005 16:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19392</guid>
		<description>I&#039;m aware of OpenLDAP and other directory authentication services. On the other hand they are good for big setup (more than 3-4 servers). This was customers managed single server. Therefore, I cannot go and suggest them ;) thanks for your suggestion.</description>
		<content:encoded><![CDATA[<p>I&#8217;m aware of OpenLDAP and other directory authentication services. On the other hand they are good for big setup (more than 3-4 servers). This was customers managed single server. Therefore, I cannot go and suggest them ;) thanks for your suggestion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19391</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 27 Dec 2005 14:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19391</guid>
		<description>Use LDAP for system authentication, and you don&#039;t need to recover the shadow file ...</description>
		<content:encoded><![CDATA[<p>Use LDAP for system authentication, and you don&#8217;t need to recover the shadow file &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nixcraft</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19390</link>
		<dc:creator>nixcraft</dc:creator>
		<pubDate>Tue, 27 Dec 2005 03:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19390</guid>
		<description>&lt;I&gt;&gt;You should block user logins *before* you reboot in multiuser mode. That is, swap steps #3 and #4.&lt;/I&gt;
I guess you can go both ways</description>
		<content:encoded><![CDATA[<p><i>&gt;You should block user logins *before* you reboot in multiuser mode. That is, swap steps #3 and #4.</i><br />
I guess you can go both ways</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nixcraft</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19389</link>
		<dc:creator>nixcraft</dc:creator>
		<pubDate>Tue, 27 Dec 2005 03:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19389</guid>
		<description>&lt;I&gt;&gt;And where did you recover the deleted shadow?&lt;/I&gt;
Read Step # 3 : Rebuild /etc/shadow file from /etc/passwd, as soon as you type command pwconv, your file will be  back. 
&lt;B&gt;# pwconv&lt;/B&gt;</description>
		<content:encoded><![CDATA[<p><i>&gt;And where did you recover the deleted shadow?</i><br />
Read Step # 3 : Rebuild /etc/shadow file from /etc/passwd, as soon as you type command pwconv, your file will be  back.<br />
<b># pwconv</b></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19388</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 27 Dec 2005 03:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19388</guid>
		<description>And where did you recover the deleted shadow?</description>
		<content:encoded><![CDATA[<p>And where did you recover the deleted shadow?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19387</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 24 Dec 2005 15:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19387</guid>
		<description>You should block user logins *before* you reboot in multiuser mode. That is, swap  steps #3 and #4.</description>
		<content:encoded><![CDATA[<p>You should block user logins *before* you reboot in multiuser mode. That is, swap  steps #3 and #4.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19386</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 22 Dec 2005 18:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html#comment-19386</guid>
		<description>What I would do instead of generating all new passwords is simply restore /etc/shadow from the nightly backup tape.  This procedure would be good if you aren&#039;t doing backups, but if you aren&#039;t, shame on you!</description>
		<content:encoded><![CDATA[<p>What I would do instead of generating all new passwords is simply restore /etc/shadow from the nightly backup tape.  This procedure would be good if you aren&#8217;t doing backups, but if you aren&#8217;t, shame on you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.194 seconds -->
<!-- Cached page served by WP-Cache -->
