<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Suse &#38; OpenSuse Tips &#187; SUSE Enterprise</title>
	<atom:link href="http://www.susetips.com/tag/suse-enterprise/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.susetips.com</link>
	<description>Tricks, Guides, Tutorials, How Tos and Troubleshooting suse linux</description>
	<lastBuildDate>Sat, 05 Jun 2010 17:55:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to reset forgotten root password in SuSE Enterprise Server</title>
		<link>http://www.susetips.com/2009/04/05/how-to-reset-forgotten-root-password-in-suse-enterprise-server/</link>
		<comments>http://www.susetips.com/2009/04/05/how-to-reset-forgotten-root-password-in-suse-enterprise-server/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 06:16:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[SLES]]></category>
		<category><![CDATA[SUSE Enterprise]]></category>

		<guid isPermaLink="false">http://www.susetips.com/2009/04/05/how-to-reset-forgotten-root-password-in-suse-enterprise-server/</guid>
		<description><![CDATA[We do sometimes forget our passwords and what more when we don’t login to that particular account regularly.&#160; As good system administrators who automate most of the administrative tasks, we sometimes do not login to the root account often.&#160; This is especially so for a highly reliable and robust SLES based system. Our earlier posting [...]<p>Post from: <a href="http://www.susetips.com">Suse & OpenSuse Tips</a><br />
-----------------------------------------------------------------------<br /></p>
<p><a href="http://www.susetips.com/2009/04/05/how-to-reset-forgotten-root-password-in-suse-enterprise-server/">How to reset forgotten root password in SuSE Enterprise Server</a></p>
]]></description>
			<content:encoded><![CDATA[<p>We do sometimes forget our passwords and what more when we don’t login to that particular account regularly.&#160; As good system administrators who automate most of the administrative tasks, we sometimes do not login to the root account often.&#160; This is especially so for a highly reliable and robust SLES based system.</p>
<p>Our earlier <a href="http://www.susetips.com/2009/02/16/recover-opensuse-lost-root-password/">posting</a> was for OpenSuSE, but for SuSE, the security is even tighter.&#160; The following technique would also work for OpenSuSE, and also most other distributions.</p>
<p><span id="more-83"></span>
<p>(1) Boot your server using the installation DVD.&#160; If the server is already powered on, you will need to do a hard power-on as you can’t shutdown (since you don’t have the root password).</p>
<p><img title="DSC00330" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="245" alt="DSC00330" src="http://www.susetips.com/wp-content/uploads/2009/04/dsc00330.jpg" width="380" border="0" /> </p>
<p>(2) Select “Resue System” and login as root.&#160; No password is required here.</p>
<p><img title="DSC00331" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="245" alt="DSC00331" src="http://www.susetips.com/wp-content/uploads/2009/04/dsc00331.jpg" width="380" border="0" /> </p>
<p>(3) You have now booted into the live DVD, that is, you have booted from the DVD and the file system mounted is that of the DVD.&#160; You will need to access your Hard Disk Drive which is not mounted by default. (In my scenario, my SuSE 11 partition is on an extended partition and is on device /dev/sda7.&#160; Yours maybe different and if your system is a pure SuSE 11 (which should be the case), it is likely to be /dev/sda1, if using SATA or SCSI.&#160; If using IDE, you can try /dev/hda1. To access (mount) the SuSE 11 partition on directory /mnt;</p>
<blockquote><p>#mount /dev/sda7 /mnt</p>
</blockquote>
<p>(4) Edit /mnt/etc/shadow which is where the encrypted passwords are stored. Note that you are not suppose to edit /etc/shadow which is one used for the Live DVD.&#160; Furthermore, you won’t be able to save the /etc/shadow as it is a read-only filesystem.</p>
<p>(5) Search for the entry starting with “root:”.</p>
<p>(6) Remove 2nd field (the fields are separated by the ‘:’, resulting in something that resembles</p>
<blockquote><p>root::14329::::::</p>
</blockquote>
<p>(7) Save and exit your editor. Remove your DVD.</p>
<p>(8) Boot into single user mode by keying in “single” at the GRUB boot menu.&#160; You will not be able to access or change root password if you boot into graphical mode.</p>
<p><img title="DSC00333" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="245" alt="DSC00333" src="http://www.susetips.com/wp-content/uploads/2009/04/dsc00333.jpg" width="380" border="0" /> </p>
<p>(9) After booting, you will be greeted on the command line with “Press enter for login:”, do as it says and you are in.</p>
<p>(10) Change root password by “passwd”.&#160; There you go … and reboot.</p>
<p>Any comments or ideas for further improvement are most welcome.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-4709064562032853";
/* 300x250, created 5/8/09 */
google_ad_slot = "9311445083";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>  </p>
<p>Post from: <a href="http://www.susetips.com">Suse & OpenSuse Tips</a><br />
-----------------------------------------------------------------------<br /></p>
<p><a href="http://www.susetips.com/2009/04/05/how-to-reset-forgotten-root-password-in-suse-enterprise-server/">How to reset forgotten root password in SuSE Enterprise Server</a></p>
<p>---<br />Related Articles at Suse &amp; OpenSuse Tips:<ul><li><a href="http://www.susetips.com/2009/02/16/recover-opensuse-lost-root-password/" rel="bookmark" title="Permanent Link: How to recover OpenSuse Lost Root Password">How to recover OpenSuse Lost Root Password</a></li><li><a href="http://www.susetips.com/2009/04/09/how-to-create-user-with-password-assigned/" rel="bookmark" title="Permanent Link: How to create user with password assigned">How to create user with password assigned</a></li><li><a href="http://www.susetips.com/2009/03/30/how-to-install-openofficeorg-in-sles-from-a-suse-linux-enterprise-desktop-iso-file/" rel="bookmark" title="Permanent Link: How to install OpenOffice.org in SLES from a SuSE Linux Enterprise Desktop ISO file">How to install OpenOffice.org in SLES from a SuSE Linux Enterprise Desktop ISO file</a></li><li><a href="http://www.susetips.com/2009/04/19/taking-screenshots-in-suse/" rel="bookmark" title="Permanent Link: Taking screenshots in SuSE">Taking screenshots in SuSE</a></li><li><a href="http://www.susetips.com/2009/04/07/how-to-setup-and-enable-openssh/" rel="bookmark" title="Permanent Link: How to setup and enable OpenSSH">How to setup and enable OpenSSH</a></li></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.susetips.com/2009/04/05/how-to-reset-forgotten-root-password-in-suse-enterprise-server/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
