<?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: How to: Add a user from the OS X command line, works with Leopard!</title>
	<atom:link href="http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/</link>
	<description>News, tips, software, reviews, and more for Mac OS X, iPhone, iPad</description>
	<lastBuildDate>Mon, 13 Feb 2012 01:29:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: BAdger</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-323922</link>
		<dc:creator>BAdger</dc:creator>
		<pubDate>Fri, 27 Jan 2012 10:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-323922</guid>
		<description>Thanks Rusty, but in single user mode how does one invoke the script, and where should it be stored for the ./makeuser.sh command to work? If I save the .sh file to the desktop and add the path to it (ie sudo ./Users/jay/Desktop/makeuser.sh) it fails to be run.

THANKS</description>
		<content:encoded><![CDATA[<p>Thanks Rusty, but in single user mode how does one invoke the script, and where should it be stored for the ./makeuser.sh command to work? If I save the .sh file to the desktop and add the path to it (ie sudo ./Users/jay/Desktop/makeuser.sh) it fails to be run.</p>
<p>THANKS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: boeroboy</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-212192</link>
		<dc:creator>boeroboy</dc:creator>
		<pubDate>Thu, 14 Jul 2011 16:20:27 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-212192</guid>
		<description>More like OSX change and become less standard every day...

Give me usermod or give me Microsoft :-(</description>
		<content:encoded><![CDATA[<p>More like OSX change and become less standard every day&#8230;</p>
<p>Give me usermod or give me Microsoft <img src='http://osxdaily.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alan</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-202721</link>
		<dc:creator>alan</dc:creator>
		<pubDate>Thu, 09 Jun 2011 22:06:12 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-202721</guid>
		<description>I also need help with this</description>
		<content:encoded><![CDATA[<p>I also need help with this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-190481</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 14 Apr 2011 08:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-190481</guid>
		<description>Did you manage to get this working? I also have a need to remove a local account from the Admin group.</description>
		<content:encoded><![CDATA[<p>Did you manage to get this working? I also have a need to remove a local account from the Admin group.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Apple PANIOV &#187; Как создать в Mac OS X нового пользователя через Terminal</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-167168</link>
		<dc:creator>Apple PANIOV &#187; Как создать в Mac OS X нового пользователя через Terminal</dc:creator>
		<pubDate>Thu, 03 Feb 2011 10:02:57 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-167168</guid>
		<description>[...] взята с этого [...]</description>
		<content:encoded><![CDATA[<p>[...] взята с этого [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drew</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-147313</link>
		<dc:creator>Drew</dc:creator>
		<pubDate>Thu, 16 Dec 2010 02:00:18 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-147313</guid>
		<description>It may be easier to install the free OSX server tools. Open up Workgroup Manager &amp; select the local directory node, then you can import a text file of users laid out like so…

Username:Password:Uid:Gid:Dist-Name:Homedir:Shell

It is the standard record format so you could also do the import via the &#039;dsimport&#039; command line tool, specifying &#039;--template=StandardUser&#039; option.</description>
		<content:encoded><![CDATA[<p>It may be easier to install the free OSX server tools. Open up Workgroup Manager &amp; select the local directory node, then you can import a text file of users laid out like so…</p>
<p>Username:Password:Uid:Gid:Dist-Name:Homedir:Shell</p>
<p>It is the standard record format so you could also do the import via the &#8216;dsimport&#8217; command line tool, specifying &#8216;&#8211;template=StandardUser&#8217; option.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mac OS X Server add server user</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-138040</link>
		<dc:creator>Mac OS X Server add server user</dc:creator>
		<pubDate>Sat, 27 Nov 2010 14:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-138040</guid>
		<description>[...] You&#8217;ll need a different dscl command for various user attributes. There is a guide for a standard-type user account here: http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/ [...]</description>
		<content:encoded><![CDATA[<p>[...] You&#8217;ll need a different dscl command for various user attributes. There is a guide for a standard-type user account here: <a href="http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/" rel="nofollow">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Add daemon account on OS X</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-135660</link>
		<dc:creator>Add daemon account on OS X</dc:creator>
		<pubDate>Mon, 22 Nov 2010 20:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-135660</guid>
		<description>[...] osxdaily.com article  September 17, 2010 10:06 am         Tim Yates Thanks. The man pages tell you what commands you can use, but don&#8217;t give you any help on what fields to use and what to set them to. I was just going to copy the config from another account, but this gives a good example.  September 17, 2010 11:12 am         Gordon Davisson For a hidden system account, take a look at some existing system accounts for better examples. E.g. `dscl /Local/Default -read /Users/_sshd` (`dscl /Local/Default -ls /Users` will get you a list of local accounts). Note that you don&#8217;t have to set all attributes; GeneratedUID is generated randomly, and RecordType is automatic metadata. Also, most OS X system accounts have a primary account name that starts with underscore, and an alias without it for backward compatibility; I recommend using the underscore convention, but don&#8217;t bother with the plain alias unless you need to.  September 18, 2010 1:45 am [...]</description>
		<content:encoded><![CDATA[<p>[...] osxdaily.com article  September 17, 2010 10:06 am         Tim Yates Thanks. The man pages tell you what commands you can use, but don&#8217;t give you any help on what fields to use and what to set them to. I was just going to copy the config from another account, but this gives a good example.  September 17, 2010 11:12 am         Gordon Davisson For a hidden system account, take a look at some existing system accounts for better examples. E.g. `dscl /Local/Default -read /Users/_sshd` (`dscl /Local/Default -ls /Users` will get you a list of local accounts). Note that you don&#8217;t have to set all attributes; GeneratedUID is generated randomly, and RecordType is automatic metadata. Also, most OS X system accounts have a primary account name that starts with underscore, and an alias without it for backward compatibility; I recommend using the underscore convention, but don&#8217;t bother with the plain alias unless you need to.  September 18, 2010 1:45 am [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J. Isserlis</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-102287</link>
		<dc:creator>J. Isserlis</dc:creator>
		<pubDate>Tue, 01 Jun 2010 08:47:55 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-102287</guid>
		<description>Just read this lot, rather late.
Quick comments on shell script usage of grep etc. to test for existing user:  no need for intermediate variable (by the way, avoid names like $test,  too near to test(1) programme name): grep(1) returns 0 on match, 1 otherwise, so:

DSCL=/usr/bin/dscl      # avoid aliases, scripts, spoof.
GREP=/usr/bin/grep

function UserExists {
  $DSCL. -list /Users &#124; $GREP$1 &gt; /dev/null 2&gt;&amp;1
  # redirection removes stdout/stderr, XPG4 grep has &quot;-q&quot;
  return $?
}

USER=$1
if UserExists $USER; then
    echo  do whatever ....
else
    echo $0: $USER not found &gt;&amp;2
    exit 1  #or try again or ....
fi

Also,  when reading password,  use stty -echo and stty echo
e.g. 
echo -n Enter password
stty -echo
read P1
stty echo

Who knows who is looking over your shoulder.</description>
		<content:encoded><![CDATA[<p>Just read this lot, rather late.<br />
Quick comments on shell script usage of grep etc. to test for existing user:  no need for intermediate variable (by the way, avoid names like $test,  too near to test(1) programme name): grep(1) returns 0 on match, 1 otherwise, so:</p>
<p>DSCL=/usr/bin/dscl      # avoid aliases, scripts, spoof.<br />
GREP=/usr/bin/grep</p>
<p>function UserExists {<br />
  $DSCL. -list /Users | $GREP$1 &gt; /dev/null 2&gt;&amp;1<br />
  # redirection removes stdout/stderr, XPG4 grep has &#8220;-q&#8221;<br />
  return $?<br />
}</p>
<p>USER=$1<br />
if UserExists $USER; then<br />
    echo  do whatever &#8230;.<br />
else<br />
    echo $0: $USER not found &gt;&amp;2<br />
    exit 1  #or try again or &#8230;.<br />
fi</p>
<p>Also,  when reading password,  use stty -echo and stty echo<br />
e.g.<br />
echo -n Enter password<br />
stty -echo<br />
read P1<br />
stty echo</p>
<p>Who knows who is looking over your shoulder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: whatforks</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-100018</link>
		<dc:creator>whatforks</dc:creator>
		<pubDate>Tue, 09 Mar 2010 02:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-100018</guid>
		<description>if you do not know a filevault password you can not recover the files protected by it as far as i know

you can add a root user by using the command above or just by going to the user accounts pref pane and adding a new admin user which is a lot easier. i think the entire point of the tip above is for advanced unix geeks who want to roll their 12 sided dice instead of clicking icons.</description>
		<content:encoded><![CDATA[<p>if you do not know a filevault password you can not recover the files protected by it as far as i know</p>
<p>you can add a root user by using the command above or just by going to the user accounts pref pane and adding a new admin user which is a lot easier. i think the entire point of the tip above is for advanced unix geeks who want to roll their 12 sided dice instead of clicking icons.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thia</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-100017</link>
		<dc:creator>Thia</dc:creator>
		<pubDate>Mon, 08 Mar 2010 23:21:40 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-100017</guid>
		<description>Can someone help me I&#039;m running mac os x 10 5 8
I need instructions on how to set up a root user account I guess. Filevault has locked me out. I have no idea what&#039;s going on or what I&#039;m doing.</description>
		<content:encoded><![CDATA[<p>Can someone help me I&#8217;m running mac os x 10 5 8<br />
I need instructions on how to set up a root user account I guess. Filevault has locked me out. I have no idea what&#8217;s going on or what I&#8217;m doing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: What is the default User name and password? - Hackint0sh</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-99945</link>
		<dc:creator>What is the default User name and password? - Hackint0sh</dc:creator>
		<pubDate>Tue, 02 Mar 2010 08:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-99945</guid>
		<description>[...] dscl / -create /Users/yourname  dscl / -create /Users/yourname UserShell /bin/bash  dscl / -create /Users/yourname RealName &quot;yourfullname&quot;  dscl / -create /Users/yourname UniqueID 503  dscl / -create /Users/yourname PrimaryGroupID 1000  dscl / -create /Users/yourname NFSHomeDirectory /Local/Users/yourname    source here: How to: Add a user from the OS X command line, works with Leopard! - OS X Daily [...]</description>
		<content:encoded><![CDATA[<p>[...] dscl / -create /Users/yourname  dscl / -create /Users/yourname UserShell /bin/bash  dscl / -create /Users/yourname RealName &quot;yourfullname&quot;  dscl / -create /Users/yourname UniqueID 503  dscl / -create /Users/yourname PrimaryGroupID 1000  dscl / -create /Users/yourname NFSHomeDirectory /Local/Users/yourname    source here: How to: Add a user from the OS X command line, works with Leopard! &#8211; OS X Daily [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chitra</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-99909</link>
		<dc:creator>chitra</dc:creator>
		<pubDate>Fri, 26 Feb 2010 12:29:58 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-99909</guid>
		<description>when I try to go launch dscl

I got error message

launch_msg() : Socket is not connected.

How can I go further ?</description>
		<content:encoded><![CDATA[<p>when I try to go launch dscl</p>
<p>I got error message</p>
<p>launch_msg() : Socket is not connected.</p>
<p>How can I go further ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slylabs13</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-99899</link>
		<dc:creator>slylabs13</dc:creator>
		<pubDate>Wed, 24 Feb 2010 21:49:18 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-99899</guid>
		<description>I&#039;d like to remove a user from the Admin group. I ssh&#039;d in as root and tried: 

dscl . -delete /Groups/admin GroupMembership testadmn

The command completed without error but the user account still shows up as an administrator.</description>
		<content:encoded><![CDATA[<p>I&#8217;d like to remove a user from the Admin group. I ssh&#8217;d in as root and tried: </p>
<p>dscl . -delete /Groups/admin GroupMembership testadmn</p>
<p>The command completed without error but the user account still shows up as an administrator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Finally, Snow Leopard Works! - Page 3</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-95747</link>
		<dc:creator>Finally, Snow Leopard Works! - Page 3</dc:creator>
		<pubDate>Sun, 30 Aug 2009 20:40:46 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-95747</guid>
		<description>[...] in what command sequence you used to make the user account. this is what i was working from: How to: Add a user from the OS X command line, works with Leopard! - OS X Daily Following that I ran into problems with creating the home directory and upon reboot into the gui it [...]</description>
		<content:encoded><![CDATA[<p>[...] in what command sequence you used to make the user account. this is what i was working from: How to: Add a user from the OS X command line, works with Leopard! &#8211; OS X Daily Following that I ran into problems with creating the home directory and upon reboot into the gui it [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>


<!-- W3 Total Cache: Page cache debug info:
Engine:             disk (enhanced)
Key:                2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/feed/_index.html
Caching:            disabled
Reject reason:      user agent is rejected
Status:             not cached
Creation Time:      0.129s
Header info:
X-Pingback:         http://osxdaily.com/xmlrpc.php
Last-Modified:      Mon, 13 Feb 2012 01:29:35 GMT
ETag:               "05e6f7291eb0b0598dea2a796acd23c5"
X-Powered-By:       W3 Total Cache/0.9.1.3
Link:               <http://wp.me/ps4An-3Y>; rel=shortlink
Content-Type:       text/xml; charset=UTF-8
-->
