<?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>Ruby, Rails, OSX and Linux fun &#187; fuse</title>
	<atom:link href="http://www.frederico-araujo.com/tag/fuse/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.frederico-araujo.com</link>
	<description>Ruby, Rails, OSX and linux sysadmin</description>
	<lastBuildDate>Thu, 02 Sep 2010 08:13:24 +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>Encrypt folders in Mac OSX with encfs</title>
		<link>http://www.frederico-araujo.com/2007/12/17/encrypt-folders-in-mac-osx-with-encfs/</link>
		<comments>http://www.frederico-araujo.com/2007/12/17/encrypt-folders-in-mac-osx-with-encfs/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 05:01:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[encfs]]></category>
		<category><![CDATA[fuse]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://www.frederico-araujo.com/?p=25</guid>
		<description><![CDATA[Encrypt folders in Mac OSX with encfs
OSX already include the File Vault functionality that allows you to encrypt your whole Home Folder.
Thou the storage overhead is so small, the time to encrypt it the first time is very very long.
if you have Videos, and big files, it takes even longer.
What if I don&#8217;t want to [...]]]></description>
			<content:encoded><![CDATA[<p>Encrypt folders in Mac OSX with encfs</p>
<p>OSX already include the File Vault functionality that allows you to encrypt your whole Home Folder.<br />
Thou the storage overhead is so small, the time to encrypt it the first time is very very long.<br />
if you have Videos, and big files, it takes even longer.</p>
<p>What if I don&#8217;t want to encrypt my big folders like Movies, Music, Pictures, Pdfs?</p>
<p>I only want to encrypt my Documents folder.<br />
Be aware that VMWARE stored the virtual machine files under this folder, you should move it to outside Documents.</p>
<p><strong> WARNING: </strong></p>
<p>Be careful with this tutorial,<br />
Write down your password somewhere and BACKUP your data before going further these steps.</p>
<p>if you forget your password, say good bye to your data.</p>
<p>THERE IS NO WAY TO GET YOUR DATA BACK!!!</p>
<p><strong>TOOLS required: </strong></p>
<p><code><br />
# update your ports to get the latest encfs that runs ok on OSX10.5<br />
$ sudo port selfupdate</code></p>
<p># install encfs<br />
$ sudo port install encfs<br />
</code></p>
<p>or Download macfuse and encfs from google:</p>
<p>http://code.google.com/p/macfuse/</p>
<p>and</p>
<p>http://code.google.com/p/encfs/</p>
<p><strong>Lets move The Documents folder contents to another folder:</strong></p>
<p><code><br />
$ cd<br />
$ mkdir temp_documents<br />
$ mv Documents/* temp_documents/<br />
</code></p>
<p><strong>Create the directory to hold the encrypted files, it can be any name.</strong></p>
<p>Run this only one time. The first time to setup the folder...<br />
<code><br />
$ mkdir .documents<br />
</code></p>
<p><strong> Setup the encryption </strong><br />
<code><br />
$ encfs ~/.documents/ ~/Documents/<br />
</code></p>
<p>you will see this:</p>
<pre>
fred@Macintosh ~ $ encfs ~/.documents/ ~/Documents/
Creating new encrypted volume.
Please choose from one of the following options:
enter "x" for expert configuration mode,
enter "p" for pre-configured paranoia mode,
anything else, or an empty line will select standard mode.
</pre>
<p>now, after you pass this step, the file system will be mounted as well.</p>
<p>encfs uses FuseFS, so it behaves just like a mount point</p>
<p>to unmount it you do</p>
<p><code><br />
$ unmount ~/Documents<br />
</code></p>
<p>to mount it again issue this command:<br />
<code><br />
$ encfs ~/.documents/ ~/Documents/<br />
# or this way, which will look with better names and a folder icon on Desktop:<br />
$ encfs ~/.documents/ ~/Documents/ -- -o fsname=Documents -o volname=Documents -o local<br />
</code></p>
<p>to check mounted filesystems</p>
<p><code><br />
$ mount<br />
</code></p>
<p>you should be able to see:</p>
<p><code><br />
encfs@fuse2 on /Users/fred/Documents (fusefs, nodev, nosuid, synchronous, mounted by fred)<br />
</code></p>
<p>or this if you used the longer command.<br />
<code><br />
Documents on /Users/fred/Documents (fusefs, local, nodev, nosuid, synchronous, mounted by fred)<br />
</code></p>
<p>Now, with the encrypted folder "mounted", mv the data from that temp folder to the new encrypted folder:</p>
<p><strong> WARNING: be carefull here </strong></p>
<p><code><br />
$ cp temp_documents/* Documents/<br />
$ rm -rf temp_documents/<br />
</code></p>
<p>that's it folks.</p>
<p>Final overview:</p>
<p><code><br />
# to create the encrypted folder:<br />
$ encfs ~/.documents/ ~/Documents/<br />
#to Mount it (enable)<br />
$ encfs ~/.documents/ ~/Documents/<br />
#or<br />
$ encfs ~/.documents/ ~/Documents/ -- -o fsname=Documents -o volname=Documents -o local<br />
#to Umount it (disable)<br />
$ umount ~/Documents<br />
</code></p>
<p><b> don't change anything inside .documents</b><br />
remember the dot in the front means the folder is invisible<br />
you won't see it in Finder.</p>
<p>This also should work for Linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.frederico-araujo.com/2007/12/17/encrypt-folders-in-mac-osx-with-encfs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
