<?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>Piece of Unix Hints &#187; NetBSD</title>
	<atom:link href="http://hints.jeb.be/tag/netbsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://hints.jeb.be</link>
	<description>hints.jeb.be</description>
	<lastBuildDate>Fri, 04 Dec 2009 20:35:51 +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>Reminder to add an user on NetBSD</title>
		<link>http://hints.jeb.be/2008/12/17/reminder-to-add-an-user-on-netbsd/</link>
		<comments>http://hints.jeb.be/2008/12/17/reminder-to-add-an-user-on-netbsd/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 01:21:48 +0000</pubDate>
		<dc:creator>Jeb</dc:creator>
				<category><![CDATA[NetBSD]]></category>
		<category><![CDATA[User Management]]></category>

		<guid isPermaLink="false">http://hints.jeb.be/?p=9</guid>
		<description><![CDATA[This is just a little reminder about adding user on NetBSD. The basic way is to use : # useradd -G &#60;group_2&#62; -b /home -g &#60;group_1&#62; -k /etc/skel -m -s /usr/pkg/bin/bash -v &#60;user&#62; This add &#60;user&#62; in primary group &#60;group_1&#62; and secondary group &#60;group_2&#62;, create is home in /home/&#60;user&#62; using /etc/skel as skeleton. It also [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a little reminder about adding user on NetBSD.<br />
The basic way is to use :
</p>
<pre class="wiki"># useradd -G &lt;group_2&gt; -b /home -g &lt;group_1&gt; -k /etc/skel -m -s /usr/pkg/bin/bash -v &lt;user&gt;
</pre>
<p>
This add &lt;user&gt; in primary group &lt;group_1&gt; and secondary group &lt;group_2&gt;, create is home in /home/&lt;user&gt; using /etc/skel as skeleton. It also set the shell to bash.
</p>
<p>
N.B: in /etc/passwd you will see the primary group of each user.<br />In /etc/group you will find, for each group, the list of user that are inside the group as secondary group.<br />
N.B: You can also use id command to see all group of an user, it will display uid, gid (primary group) then all secondary group</p>
]]></content:encoded>
			<wfw:commentRss>http://hints.jeb.be/2008/12/17/reminder-to-add-an-user-on-netbsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
