<?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>Doug Diego &#187; unix</title>
	<atom:link href="http://dougdiego.com/tag/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://dougdiego.com</link>
	<description></description>
	<lastBuildDate>Sat, 10 Apr 2010 14:16:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MacOSX user Disappeared &amp; Restored</title>
		<link>http://dougdiego.com/2008/08/19/macosx-user-dissapeared/</link>
		<comments>http://dougdiego.com/2008/08/19/macosx-user-dissapeared/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 16:13:44 +0000</pubDate>
		<dc:creator>doug</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://dougdiego.com/?p=25</guid>
		<description><![CDATA[The other day, I opened my MacBook Pro a few hours after closing the lid and putting it to sleep.  It wouldn&#8217;t wake from sleep.  I tried several things to get it to try and wake up, but had no success.  This has happened a couple times in the past, and I usually just hold [...]]]></description>
			<content:encoded><![CDATA[<p>The other day, I opened my MacBook Pro a few hours after closing the lid and putting it to sleep.  It wouldn&#8217;t wake from sleep.  I tried several things to get it to try and wake up, but had no success.  This has happened a couple times in the past, and I usually just hold down the power key to restart it.  So that is what I did.</p>
<p>When it started back up and loaded the login page, I noticed something strange, my user was missing.  I have 4 user&#8217;s registered on my computer and now only 3 of them were showing.  So I logged in as one of the other users who an admin.</p>
<p>Upon login, I could see that my user&#8217;s account still existed on disk:  <em>/Users/doug</em>  When I went to the System Preferences, I did not list my user.  I wasn&#8217;t sure what was wrong.</p>
<p>I began searching through the file system and found there is a file for each user in <em>/var/db/dslocal/nodes/Default/users/</em>  Example:</p>
<p><em>/var/db/dslocal/nodes/Default/users/doug.plist</em></p>
<p>I opened up <em>doug.plist</em> and found that it was a binary file.  I could read some of the text in there and saw some mention of &#8220;Kernel&#8221; and other thing that suggested a stacktrace or dump.  I opened up the plist for another user and found that it was standard XML.  </p>
<p>So I copied the doug.plist from my Time Machine backup and replaced it with the one on my laptop.  I rebooted and my account was restored.</p>
<p>I&#8217;m not exactly sure what happened, but the moral of the store is:</p>
<ol>
<li>Create a Time Machine Backup</li>
<li>Have at least one other Admin user on your computer you can login to if all fails.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://dougdiego.com/2008/08/19/macosx-user-dissapeared/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
