<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Osx on Madprof&#39;s workshop</title>
    <link>http://www.madprof.net/tags/osx/</link>
    <description>Recent content in Osx on Madprof&#39;s workshop</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Mon, 14 Nov 2011 08:22:26 +0100</lastBuildDate>
    <atom:link href="http://www.madprof.net/tags/osx/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>moving osx leopard server users</title>
      <link>http://www.madprof.net/posts/moving-osx-leopard-server-users/</link>
      <pubDate>Mon, 14 Nov 2011 08:22:26 +0100</pubDate>
       <guid isPermaLink="false">http://www.madprof.net/posts/moving-osx-leopard-server-users/</guid> 
      <description>&lt;p&gt;So we needed to move a bunch of users from an OSX Leopard Server to a normal OSX machine (as a backup / test bed)&lt;/p&gt;
&lt;p&gt;using the normal &amp;lsquo;migration assistant&amp;rsquo; didn&amp;rsquo;t work, so we had to do it manually. Possibly due to moving from a Intel based OSX-Server machine to a PPC based non-Server?&lt;/p&gt;
&lt;p&gt;All user details are kept in&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/private/var/db/dslocal/nodes/Default/users
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;in .plist files (XML, human readable).&lt;/p&gt;
&lt;p&gt;and all passwords are kept in hash files in&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/private/var/db/shadow/hash
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The hash files are named after the &amp;ldquo;generateduid&amp;rdquo; found inside the users .plist file.&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;re using home directories on the computer, you&amp;rsquo;d need to move them across too.&lt;/p&gt;
&lt;p&gt;Ditto for user groups.  User groups are kept in&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/private/var/db/dslocal/nodes/Default/groups
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Move the files across to the new machine, and it all just works.&lt;/p&gt;
&lt;p&gt;if you use &lt;code&gt;cp -n&lt;/code&gt; on the command line, it won&amp;rsquo;t write over the top of files already there, so shouldn&amp;rsquo;t muck anything up (hopefully!)&lt;/p&gt;
&lt;p&gt;NOTE:  One weird thing was that a bunch of the users didn&amp;rsquo;t appear in the Accounts Preference Panel.  This seems to be linked whether or not the account .plist file has a default shell set up:&lt;/p&gt;
&lt;!-- raw HTML omitted --&gt;
&lt;p&gt;it goes after the &amp;ldquo;realname&amp;rdquo; key/array pair.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
