<?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>Tue, 21 May 2013 21:37:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: k.</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-476559</link>
		<dc:creator>k.</dc:creator>
		<pubDate>Fri, 18 Jan 2013 14:19:59 +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-476559</guid>
		<description>You can avoid the admin status setting the PrimaryGroup to 20 instead of 80.</description>
		<content:encoded><![CDATA[<p>You can avoid the admin status setting the PrimaryGroup to 20 instead of 80.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Hayward</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-426798</link>
		<dc:creator>Jonathan Hayward</dc:creator>
		<pubDate>Sat, 15 Sep 2012 19:54:53 +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-426798</guid>
		<description>I needed to make one important modification: instead of

dscl / -create ...

I needed

dscl . -create ...

But that&#039;s a minor detail. If this were on StackOverflow or apple.stackexchange.com, I would definitely upvote it.</description>
		<content:encoded><![CDATA[<p>I needed to make one important modification: instead of</p>
<p>dscl / -create &#8230;</p>
<p>I needed</p>
<p>dscl . -create &#8230;</p>
<p>But that&#8217;s a minor detail. If this were on StackOverflow or apple.stackexchange.com, I would definitely upvote it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mik3Silv3r</title>
		<link>http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/#comment-402319</link>
		<dc:creator>Mik3Silv3r</dc:creator>
		<pubDate>Wed, 27 Jun 2012 18:08:52 +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-402319</guid>
		<description>The scripts works?
I have a PowerBook G4, but the user is a standar user.... and if i reboot with cmd+s in the command line: rm /var/db/.AppleSetupDone 
tell me that this file is read only mode....
now.. in your scripts use the command &quot;SUDO&quot;, then if i am not an admin... how execute this script???
i dont have the admin user and password, i dont have the CD, how create or change de admin pass?</description>
		<content:encoded><![CDATA[<p>The scripts works?<br />
I have a PowerBook G4, but the user is a standar user&#8230;. and if i reboot with cmd+s in the command line: rm /var/db/.AppleSetupDone<br />
tell me that this file is read only mode&#8230;.<br />
now.. in your scripts use the command &#8220;SUDO&#8221;, then if i am not an admin&#8230; how execute this script???<br />
i dont have the admin user and password, i dont have the CD, how create or change de admin pass?</p>
]]></content:encoded>
	</item>
	<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://cdn.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>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/3 queries in 0.004 seconds using disk: basic
Object Caching 347/348 objects using disk: basic
Content Delivery Network via cdn.osxdaily.com

Served from: osxdaily.com @ 2013-05-22 05:49:34 -->