<?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>hocuspokus &#187; sudo</title>
	<atom:link href="http://hocuspokus.net/tag/sudo/feed" rel="self" type="application/rss+xml" />
	<link>http://hocuspokus.net</link>
	<description>the life and times of a code monkey</description>
	<lastBuildDate>Tue, 01 Jun 2010 16:40:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Creating Users on a Linux&#160;System</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F01%2Fcreating-users-on-a-linux-system&amp;seed_title=Creating+Users+on+a+Linux%26%23160%3BSystem</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F01%2Fcreating-users-on-a-linux-system&amp;seed_title=Creating+Users+on+a+Linux%26%23160%3BSystem#comments</comments>
		<pubDate>Sat, 09 Jan 2010 11:13:42 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[user-management]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=399</guid>
		<description><![CDATA[It&#8217;s been a while since I&#8217;ve had to do any basic sysadmin stuff on a Linux box&#8230; seeing as I had to google the answers to this I thought I&#8217;d better write them down! useradd syntax useradd &#91;options&#93; &#123;username&#125; Useful &#8230; <a href="http://hocuspokus.net/feeder/?FeederAction=clicked&#38;feed=Articles+%28RSS2%29&#38;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F01%2Fcreating-users-on-a-linux-system&#38;seed_title=Creating+Users+on+a+Linux%26%23160%3BSystem">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since I&#8217;ve had to do any basic sysadmin stuff on a Linux box&#8230; seeing as I had to google the answers to this I thought I&#8217;d better write them down!</p>

<p><strong>useradd syntax</strong></p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">useradd <span style="color: #7a0874; font-weight: bold;">&#91;</span>options<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>username<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>


<p>Useful options are:</p>

<dl>
    <dt>-d</dt>
    <dd>declare the users home directory</dd>
    <dt>-m</dt>
    <dd>force &#8216;useradd&#8217; to create the home directory</dd>
    <dt>-D</dt>
    <dd>accept the system defaults for account settings</dd>
</dl>

<p>An alternative for &#8216;useradd&#8217; though is &#8216;adduser&#8217;:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">adduser <span style="color: #7a0874; font-weight: bold;">&#123;</span>username<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>


<p>This will then prompt you for all the information needed to set up the account.</p>

<p><strong>making the user an administrator (with sudo)</strong></p>

<p>As the root user&#8230;</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">visudo</pre></div></div>


<p>Then underneath the entry for &#8216;root&#8217; just add in an entry with the desired user name:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#123;</span>username<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #007800;">ALL</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span>ALL<span style="color: #7a0874; font-weight: bold;">&#41;</span> ALL</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F01%2Fcreating-users-on-a-linux-system&amp;seed_title=Creating+Users+on+a+Linux%26%23160%3BSystem/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->