<?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; password</title>
	<atom:link href="http://www.susetips.com/tag/password/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>Tue, 30 Nov 2010 09:33:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>How to create user with password assigned</title>
		<link>http://www.susetips.com/2009/04/09/how-to-create-user-with-password-assigned/</link>
		<comments>http://www.susetips.com/2009/04/09/how-to-create-user-with-password-assigned/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 12:56:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[account]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.susetips.com/2009/04/09/how-to-create-user-with-password-assigned/</guid>
		<description><![CDATA[If you create new users (as root) using # useradd –m tux You will have created a newuser with it being disabled.&#160; This means that the password entry (the 2nd column) in the /etc/shadow will have a ! as the entry, i.e. tux:!:14343:0:99999:7::: You can use a script to go through it and change the [...]<p>Post from: <a href="http://www.susetips.com">Suse & OpenSuse Tips</a><br />
-----------------------------------------------------------------------<br /><br/><br/><a href="http://www.susetips.com/2009/04/09/how-to-create-user-with-password-assigned/">How to create user with password assigned</a></p>
]]></description>
			<content:encoded><![CDATA[<p>If you create new users (as root) using</p>
<blockquote><p># useradd –m tux</p>
</blockquote>
<p>You will have created a newuser with it being disabled.&#160; This means that the password entry (the 2nd column) in the /etc/shadow will have a ! as the entry, i.e.</p>
<blockquote><p>tux:!:14343:0:99999:7:::</p>
</blockquote>
<p> <span id="more-111"></span>
<p>You can use a script to go through it and change the ! to the encrypted password (which you can create earlier) but you must be aware that existing users that are disabled will have the 2nd field starting with !.&#160; </p>
<p>The -p option on useradd will require the encrypted password as the given parameter.&#160; This will be cumbersome if you are trying to use the script to create a set of new users and you will have to encrypt the individual passwords prior to using the useradd with the -p option.</p>
<p>In order to create a newuser with a password assigned, you can use</p>
<blockquote><p># useradd –m tux      <br /># echo welcome | passwd &#8211;stdin tux</p>
</blockquote>
<p>Or you can copy the following script and use it to create a new user with password and home directory.</p>
<blockquote><p>#!/bin/sh      <br />if [ $# –ne 2 ]; then       <br />&#160;&#160;&#160; echo “Usage: $0 &lt;username&gt; &lt;password&gt;”       <br />&#160;&#160;&#160; exit 1       <br />fi       <br />useradd –m $1       <br />echo $2 | passwd –stdin $1</p>
</blockquote>
<p>There are other ways to do it as well, but this is an easy way to understand it.&#160; Have fun!</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 /><br/><br/><a href="http://www.susetips.com/2009/04/09/how-to-create-user-with-password-assigned/">How to create user with password assigned</a></p>
<p>---<br />Related Articles at Suse &amp; OpenSuse Tips:<ul><li><a href="http://www.susetips.com/2009/04/09/how-to-temporary-disable-users/" rel="bookmark" title="Permanent Link: How to temporary disable users">How to temporary disable users</a></li><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/05/05/automatically-dating-your-tar-backups/" rel="bookmark" title="Permanent Link: Automatically dating your tar backups">Automatically dating your tar backups</a></li><li><a href="http://www.susetips.com/2009/04/05/how-to-reset-forgotten-root-password-in-suse-enterprise-server/" rel="bookmark" title="Permanent Link: How to reset forgotten root password in SuSE Enterprise Server">How to reset forgotten root password in SuSE Enterprise Server</a></li><li><a href="http://www.susetips.com/2009/04/16/short-and-quick-tutorial-for-the-command-tar/" rel="bookmark" title="Permanent Link: Short and quick tutorial for the command “tar”">Short and quick tutorial for the command “tar”</a></li></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.susetips.com/2009/04/09/how-to-create-user-with-password-assigned/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to recover OpenSuse Lost Root Password</title>
		<link>http://www.susetips.com/2009/02/16/recover-opensuse-lost-root-password/</link>
		<comments>http://www.susetips.com/2009/02/16/recover-opensuse-lost-root-password/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 06:19:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[password]]></category>

		<guid isPermaLink="false">http://www.susetips.com/?p=5</guid>
		<description><![CDATA[Hopefully not but from time to time, we may somehow forgot what our root password is.  This can happen in the case where you are managing a teaching laboratory, CAD/CAM workstations or your grandmother’s OpenSuSE PC!  These are situations where once the machine is setup, you rarely need to have system administration access.  So, the [...]<p>Post from: <a href="http://www.susetips.com">Suse & OpenSuse Tips</a><br />
-----------------------------------------------------------------------<br /><br/><br/><a href="http://www.susetips.com/2009/02/16/recover-opensuse-lost-root-password/">How to recover OpenSuse Lost Root Password</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Hopefully not but from time to time, we may somehow forgot what our root password is.  This can happen in the case where you are managing a teaching laboratory, CAD/CAM workstations or your grandmother’s OpenSuSE PC!  These are situations where once the machine is setup, you rarely need to have system administration access.  So, the first answer is … re-install!</p>
<p>Heck no, an easier way is to</p>
<ol>
<li>Boot into single user mode</li>
<li>Change password</li>
<li>Reboot</li>
</ol>
<p><span id="more-5"></span></p>
<h4>Booting into single user mode</h4>
<p>Assuming that you did not password protect  your GRUB boot loader (default boot loader for most Linux distribution), to boot into single user mode in most Linux distribution, you simply need to ask it to boot into single user mode (runlevel 1) but as rightly pointed out (<em>see comment</em>), in OpenSuSE, instead of simply pressing “1” when greeted with the following screen, you need to instead input &#8220;<span style="font-family: Courier New;">init=/bin/sh</span>&#8220;.  By pressing &#8220;1&#8243;, you will still be required to enter the root password.</p>
<p><a style="text-decoration: none;" href="http://www.susetips.com/wp-content/uploads/2009/02/blogpost.jpg"></a></p>
<div id="attachment_45" class="wp-caption aligncenter" style="width: 411px"><a style="text-decoration: none;" href="http://www.susetips.com/wp-content/uploads/2009/02/blogpost.jpg"><img class="size-full wp-image-45" title="blog-post1" src="http://www.susetips.com/wp-content/uploads/2009/02/blog-post1.jpg" alt="GRUB startup" width="401" height="249" /></a><p class="wp-caption-text">GRUB startup</p></div>
<p><em>(Note, not all GRUB screens are like that, if by pressing “1”, it boots immediately, then the next time, press ESC to go to the text based menu.  From there, select the entry and press “e” to edit and then go to the boot instruction line and press “e” again.  You can then add the “1” at the end of the command.  Press “b” after that to boot)</em></p>
<h4>Change password</h4>
<p>Once in single user mode, you should just get the following command line prompt.</p>
<div>
<table border="0" cellspacing="0" cellpadding="1" width="400" align="center">
<tbody>
<tr>
<td width="400" align="center">
<p align="left"><span style="font-family: Courier New;">your-hostname:~ #</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p>You are actually logged in as root (superuser) and you can change the password from there.</p>
<div>
<table border="0" cellspacing="0" cellpadding="1" width="400" align="center">
<tbody>
<tr>
<td width="400" valign="top">
<p align="left"><span style="font-family: Courier New;">your-hostname:~ # passwd<br />
</span><span style="font-family: Courier New;">Changing password for root.<br />
</span><span style="font-family: Courier New;">New Password:</span></td>
</tr>
</tbody>
</table>
</div>
<p>Enter your new password (and this time remember it!).  You should see the following to confirmed that the password has changed.</p>
<div>
<table border="0" cellspacing="0" cellpadding="1" width="400" align="center">
<tbody>
<tr>
<td width="400" align="center">
<p align="left"><span style="font-family: Courier New;">Reenter New Password:<br />
Password changed.</span></td>
</tr>
</tbody>
</table>
</div>
<h4>Reboot</h4>
<p>Simlpy type,</p>
<div>
<table border="0" cellspacing="0" cellpadding="1" width="400" align="center">
<tbody>
<tr>
<td width="400" align="center">
<p align="left"><span style="font-family: Courier New;">your-hostname:~ # reboot</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p>Your root password has been reset!<br />
<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 /><br/><br/><a href="http://www.susetips.com/2009/02/16/recover-opensuse-lost-root-password/">How to recover OpenSuse Lost Root Password</a></p>
<p>---<br />Related Articles at Suse &amp; OpenSuse Tips:<ul><li><a href="http://www.susetips.com/2009/04/05/how-to-reset-forgotten-root-password-in-suse-enterprise-server/" rel="bookmark" title="Permanent Link: How to reset forgotten root password in SuSE Enterprise Server">How to reset forgotten root password in SuSE Enterprise Server</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/2010/01/12/how-to-install-gnomekde-desktop-environment-on-opensuse-11/" rel="bookmark" title="Permanent Link: How to install Gnome/KDE Desktop Environment on OpenSuse 11">How to install Gnome/KDE Desktop Environment on OpenSuse 11</a></li><li><a href="http://www.susetips.com/2009/04/09/how-to-temporary-disable-users/" rel="bookmark" title="Permanent Link: How to temporary disable users">How to temporary disable users</a></li><li><a href="http://www.susetips.com/2010/02/28/how-to-install-virtualbox-guest-additions-in-opensuse-11-2/" rel="bookmark" title="Permanent Link: How to install VirtualBox Guest Additions in OpenSuse 11.2">How to install VirtualBox Guest Additions in OpenSuse 11.2</a></li></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.susetips.com/2009/02/16/recover-opensuse-lost-root-password/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

