<?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; account</title>
	<atom:link href="http://www.susetips.com/tag/account/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 temporary disable users</title>
		<link>http://www.susetips.com/2009/04/09/how-to-temporary-disable-users/</link>
		<comments>http://www.susetips.com/2009/04/09/how-to-temporary-disable-users/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 13:05:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[account]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.susetips.com/2009/04/09/how-to-temporary-disable-users/</guid>
		<description><![CDATA[From time to time, we will need to disable users.&#160; This may be prior to the permanent deletion of the user account or just as a precautionary step. As root, you can easily disable a user account by # usermod –L &#60;username&#62; Or you can just add an ! in front of the 2nd field [...]<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-temporary-disable-users/">How to temporary disable users</a></p>
]]></description>
			<content:encoded><![CDATA[<p>From time to time, we will need to disable users.&#160; This may be prior to the permanent deletion of the user account or just as a precautionary step. </p>
<p>As root, you can easily disable a user account by</p>
<blockquote><p># usermod –L &lt;username&gt;</p>
</blockquote>
<p>Or you can just add an ! in front of the 2nd field (the encrypted password) in the /etc/shadow entry of the user.</p>
<p> <span id="more-112"></span>
<p>To re-enable the user, you can</p>
<blockquote><p># usermod –U &lt;username&gt;</p>
</blockquote>
<p>This will unlock the user, or simply put, remove the ! in front the password field of /etc/shadow.</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>If you would like to permanently delete a user, you should use</p>
<blockquote><p>userdel –r &lt;username&gt;</p>
</blockquote>
<p>to also remove their home directories.&#160; Note that in a typical administration, you would usually keep the home directory in case of the need for their data.</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-temporary-disable-users/">How to temporary disable users</a></p>
<p>---<br />Related Articles at Suse &amp; OpenSuse Tips:<ul><li><a href="http://www.susetips.com/2009/06/29/how-to-start-services-automatically-at-boot/" rel="bookmark" title="Permanent Link: How to start services automatically at boot?">How to start services automatically at boot?</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/03/13/how-to-remove-corrupted-gvfs-directory/" rel="bookmark" title="Permanent Link: How to remove corrupted .gvfs directory">How to remove corrupted .gvfs directory</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/09/how-to-temporary-disable-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
	</channel>
</rss>

