<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Creating User Accounts from the Command Line</title>
	<atom:link href="http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/</link>
	<description>Writings about more than just Macs, by Kirk McElhearn</description>
	<lastBuildDate>Thu, 29 Jul 2010 23:45:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: mallorywalker</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-861</link>
		<dc:creator>mallorywalker</dc:creator>
		<pubDate>Sun, 15 Feb 2009 18:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-861</guid>
		<description>i have an orange mac shell.
and i&#039;ve started with the fisrt step you gave and it just won&#039;t work.
i have no idea of what else i can do.
please help?
thanks</description>
		<content:encoded><![CDATA[<p>i have an orange mac shell.<br />
and i&#8217;ve started with the fisrt step you gave and it just won&#8217;t work.<br />
i have no idea of what else i can do.<br />
please help?<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sonofakrick</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-686</link>
		<dc:creator>sonofakrick</dc:creator>
		<pubDate>Fri, 21 Dec 2007 17:24:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-686</guid>
		<description>Have you been able to successfully add users via ARD with UNIX shell scripts?

Please share as I am very interested!

Thanks.</description>
		<content:encoded><![CDATA[<p>Have you been able to successfully add users via ARD with UNIX shell scripts?</p>
<p>Please share as I am very interested!</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rhocking</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-597</link>
		<dc:creator>rhocking</dc:creator>
		<pubDate>Wed, 20 Jun 2007 21:04:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-597</guid>
		<description>Hi Kirk

Thanks for all the help. I&#039;m curious though, what is the relationship between the 
asterisk format in the password field and the command. In other words, I&#039;ve 
seen one asterisk used when creating a new user or group, but sometimes none 
(still seems to work). When I use nidump passwd, Tiger shows some accounts 
with no asterisk, some with one, and some with 8. I can&#039;t seem to find any 
information on the differences.

Thanks in advance
Rik</description>
		<content:encoded><![CDATA[<p>Hi Kirk</p>
<p>Thanks for all the help. I&#8217;m curious though, what is the relationship between the<br />
asterisk format in the password field and the command. In other words, I&#8217;ve<br />
seen one asterisk used when creating a new user or group, but sometimes none<br />
(still seems to work). When I use nidump passwd, Tiger shows some accounts<br />
with no asterisk, some with one, and some with 8. I can&#8217;t seem to find any<br />
information on the differences.</p>
<p>Thanks in advance<br />
Rik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marshal</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-537</link>
		<dc:creator>Marshal</dc:creator>
		<pubDate>Fri, 12 Jan 2007 23:26:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-537</guid>
		<description>found this on &lt;a&gt;Top Ten Mac OS X Tips for Unix Geeks&lt;/a&gt;&lt;br&gt;for creating home directory.&lt;pre&gt;% sudo ditto -rsrc \/System/Library/User\ Template/English.lproj \/Users/rothman% sudo chown -R rothman:staff /Users/rothman&lt;/pre&gt;Thank you</description>
		<content:encoded><![CDATA[<p>found this on <a>Top Ten Mac OS X Tips for Unix Geeks</a><br />
<br />for creating home directory.
<pre>
% sudo ditto -rsrc \
/System/Library/User\ Template/English.lproj \
/Users/rothman

% sudo chown -R rothman:staff /Users/rothman
</pre>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jimsoxz</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-473</link>
		<dc:creator>jimsoxz</dc:creator>
		<pubDate>Fri, 25 Aug 2006 18:28:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-473</guid>
		<description>I think you have the command line wrong for taking input from a file.

Instead of sudo niload -v file.txt /

I think you meant sudo niload -v passwd / &lt;file.txt</description>
		<content:encoded><![CDATA[<p>I think you have the command line wrong for taking input from a file.</p>
<p>Instead of sudo niload -v file.txt /</p>
<p>I think you meant sudo niload -v passwd / &lt;file.txt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-420</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Sat, 20 May 2006 02:53:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-420</guid>
		<description>Created the following shell script for the user creation process...&lt;pre&gt;#!/bin/sh# This program will create a user account and change permission properly.  JOBPATH=&#039;/Volumes/Macintosh HD/jobs/&#039;clearechoechoecho &#036;JOBPATHecho -n &quot;Enter in the job number (no spaces):  &quot; ; read JOBmkdir &quot;&#036;JOBPATH&quot;&#036;JOBsudo chmod 700 &quot;&#036;JOBPATH&quot;&#036;JOBsudo chown &#036;JOB &quot;&#036;JOBPATH&quot;&#036;JOBsudo chgrp &#036;JOB &quot;&#036;JOBPATH&quot;&#036;JOBecho &quot;&#036;JOB::&#036;JOB:&#036;JOB::0:0:&#036;JOB:&#036;JOBPATH&#036;JOB:/bin/bash&quot; &#124; sudo niload -v passwd /echosudo passwd &#036;JOB&lt;/pre&gt;Thanks for the lead!</description>
		<content:encoded><![CDATA[<p>Created the following shell script for the user creation process&#8230;</p>
<pre>
#!/bin/sh

# This program will create a user account and change permission properly.  

JOBPATH='/Volumes/Macintosh HD/jobs/'
clear
echo
echo
echo &#36;JOBPATH

echo -n "Enter in the job number (no spaces):  " ; read JOB

mkdir "&#36;JOBPATH"&#36;JOB
sudo chmod 700 "&#36;JOBPATH"&#36;JOB
sudo chown &#36;JOB "&#36;JOBPATH"&#36;JOB
sudo chgrp &#36;JOB "&#36;JOBPATH"&#36;JOB

echo "&#36;JOB::&#36;JOB:&#36;JOB::0:0:&#36;JOB:&#36;JOBPATH&#36;JOB:/bin/bash" | sudo niload -v passwd /

echo
sudo passwd &#36;JOB
</pre>
<p>Thanks for the lead!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-419</link>
		<dc:creator>Kirk</dc:creator>
		<pubDate>Wed, 17 May 2006 16:36:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-419</guid>
		<description>Yeah, they&#039;ll need to log in via the GUI at least once to create the home 
directory.</description>
		<content:encoded><![CDATA[<p>Yeah, they&#8217;ll need to log in via the GUI at least once to create the home<br />
directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-418</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Tue, 16 May 2006 19:52:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-418</guid>
		<description>Ah...I wonder if by login, you meant via the GUI? These users will only be logging in by SSH. Just to clarify... Thanks!</description>
		<content:encoded><![CDATA[<p>Ah&#8230;I wonder if by login, you meant via the GUI? These users will only be logging in by SSH. Just to clarify&#8230; Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-417</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Tue, 16 May 2006 19:49:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-417</guid>
		<description>Awesome article. Thanks! Running into one minor problem with this in Tiger. User creation goes just fine, but when they login, their directory isn&#039;t created automatically as described, and they just get a &lt;code&gt;Could not chdir to home directory /Users/212346: No such file or directory&lt;/code&gt; message. Any ideas?</description>
		<content:encoded><![CDATA[<p>Awesome article. Thanks! Running into one minor problem with this in Tiger. User creation goes just fine, but when they login, their directory isn&#8217;t created automatically as described, and they just get a <code>Could not chdir to home directory /Users/212346: No such file or directory</code> message. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-393</link>
		<dc:creator>Kirk</dc:creator>
		<pubDate>Tue, 28 Feb 2006 16:52:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-393</guid>
		<description>You could leave blank passwords and allow users to set their passwords later. 
Other than that, I don&#039;t see any way to do it, other than to whip up something in 
PHP (for a web site).
</description>
		<content:encoded><![CDATA[<p>You could leave blank passwords and allow users to set their passwords later.<br />
Other than that, I don&#8217;t see any way to do it, other than to whip up something in<br />
PHP (for a web site).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rkb</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-392</link>
		<dc:creator>rkb</dc:creator>
		<pubDate>Mon, 27 Feb 2006 14:11:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-392</guid>
		<description>I&#039;ve found your command line account creation article invaluable. I was just wondering if there was any way to set the password as the user asked, other than using the command line passwd command?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve found your command line account creation article invaluable. I was just wondering if there was any way to set the password as the user asked, other than using the command line passwd command?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-323</link>
		<dc:creator>Kirk</dc:creator>
		<pubDate>Mon, 28 Nov 2005 16:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-323</guid>
		<description>As mentioned in the text... 

Most Unix commands are case-sensitive.</description>
		<content:encoded><![CDATA[<p>As mentioned in the text&#8230; </p>
<p>Most Unix commands are case-sensitive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bahi</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-322</link>
		<dc:creator>Bahi</dc:creator>
		<pubDate>Mon, 28 Nov 2005 01:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-322</guid>
		<description>I tried this on Tiger and it worked - but only if &quot;uid&quot; appeared in lower case. So 
&quot;nireport . /users name uid&quot; worked but &quot;nireport . /users name UID&quot; didn&#039;t.</description>
		<content:encoded><![CDATA[<p>I tried this on Tiger and it worked &#8211; but only if &quot;uid&quot; appeared in lower case. So<br />
&quot;nireport . /users name uid&quot; worked but &quot;nireport . /users name UID&quot; didn&#8217;t.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: glucero</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-317</link>
		<dc:creator>glucero</dc:creator>
		<pubDate>Wed, 12 Oct 2005 01:03:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-317</guid>
		<description>Have yet to try it but am first interested to know if it&#039;ll work in Tiger. I need to 
add a user account to many computers using the Send Unix Command in 
Remote Desktop. Very cool article.</description>
		<content:encoded><![CDATA[<p>Have yet to try it but am first interested to know if it&#8217;ll work in Tiger. I need to<br />
add a user account to many computers using the Send Unix Command in<br />
Remote Desktop. Very cool article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MartinK</title>
		<link>http://www.mcelhearn.com/2004/11/02/creating-user-accounts-from-the-command-line/#comment-308</link>
		<dc:creator>MartinK</dc:creator>
		<pubDate>Thu, 07 Jul 2005 16:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.mcelhearn.com/wordpress/?p=67#comment-308</guid>
		<description>On my system (10.3.9), the command &quot;nireport . /users name UID&quot; will list an overview of all users, yet does not tell the user ID. For every user listed, the command reports &quot;no value&quot;.

Everything else worked, and I&#039;ve found the article very useful in showing how to assign specific user IDs when creating user accounts, something the GUI does not provide for. I&#039;d guess that more than 95 percent of OS-X installations out there have a user &quot;501&quot; -- not really my idea of the widely lauded user account separation and protection in OS-X. Assigning user accounts some higher numbered user IDs than OS-X defaults to has just enabled me to add yet another layer of security. Thank you, Kirk, for making this available as a free read!

PS: While *creating* user accounts with specific IDs is just as straightforward as described above, *changing* IDs is a totally different animal. Some part of the OS-X GUI seems to allow for that, but does only half of the job; and even on the command line, trying to change UIDs can yield very messy system states.</description>
		<content:encoded><![CDATA[<p>On my system (10.3.9), the command &quot;nireport . /users name UID&quot; will list an overview of all users, yet does not tell the user ID. For every user listed, the command reports &quot;no value&quot;.</p>
<p>Everything else worked, and I&#8217;ve found the article very useful in showing how to assign specific user IDs when creating user accounts, something the GUI does not provide for. I&#8217;d guess that more than 95 percent of OS-X installations out there have a user &quot;501&quot; &#8212; not really my idea of the widely lauded user account separation and protection in OS-X. Assigning user accounts some higher numbered user IDs than OS-X defaults to has just enabled me to add yet another layer of security. Thank you, Kirk, for making this available as a free read!</p>
<p>PS: While *creating* user accounts with specific IDs is just as straightforward as described above, *changing* IDs is a totally different animal. Some part of the OS-X GUI seems to allow for that, but does only half of the job; and even on the command line, trying to change UIDs can yield very messy system states.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
