How to create an encrypted password protected folder in Peppermint

Let’s say your Laptop or Netbook is stolen, with local access your login isn’t much protection and is quite easily bypassed.

An encrypted home folder is an option (and is offered during installation), but having the WHOLE home folder encrypted can make troubleshooting a lot of login issues nearly impossible, so it’s not for everyone (me included).

So how would you like a password protected and encrypted FOLDER in your home folder where you can save JUST your sensitive files ?

Cryptkeeper is a Linux system tray applet that manages encrypted folders. It utilises EncFS which is a FUSE-based encrypted file system, which transparently handles encryption/decryption.

OK, first to install cryptkeeper … open a terminal and run:

sudo apt-get install cryptkeeper

then to make cryptkeeper autostart at login, run:

mkdir -v ~/.config/autostart

(don’t worry if that last command fails, it just means the directory already exists … just carry on below)
then:

cp -v /usr/share/applications/cryptkeeper.desktop ~/.config/autostart/cryptkeeper.desktop

Now log off/on (or reboot)

You’ll now see a new Cryptkeeper icon in your system tray (by the clock).

Right-click the Cryptkeeper system tray icon, and select “Preferences

Change -

File browser: nautilus

to

File browser: pcmanfm

and click the “Close” button.

Now normal (left) click the Cryptkeeper icon and you’ll be presented with a menu like this:-

http://linuxforums.org.uk/MGalleryItem.php?id=1579

Select “New encrypted folder” … and you’ll be presented with this dialog:-

http://linuxforums.org.uk/MGalleryItem.php?id=1580

Select your home folder in the right hand column, and enter a name for your new encrypted folder (I’ve called mine “Encrypted” in the above screenshot), then click the “Forward” button.

You’'ll the be presented with this dialog asking for a password for the Encrypted folder

http://linuxforums.org.uk/MGalleryItem.php?id=1581

Enter the password you want to use (twice) and click the “Forward” button.

That’s it … you’re done :slight_smile:

You’ll now find a folder (in your home folder) called whatever name you chose … it will appear to work as any other folder (encryption/decryption will be totally transparent)

BUT

When you reboot, that folder won’t even by visible in your home directory until you click the system tray icon and select the folder
(shown as the top option here):-

http://linuxforums.org.uk/MGalleryItem.php?id=1579

then enter the password you chose when prompted.

Only then does the encrypted folder appear.

Any data you keep in there should be safe if your PC is stolen because the thief won’t have the password to access the folder … but … DO NOT FORGET YOUR PASSWORD :wink:

If you forget your password, don’t come moaning to me … I CANNOT help you recover the data from the encrypted folder … that’s kinda the whole point :wink:


Original source:
http://xmodulo.com/2013/08/how-to-password-protect-folder-on-linux.html

Excellent. Thanks Mark. :slight_smile:

Thanks for that- didn’t even know that could be done.

You’re both welcome :slight_smile:

Created the Encrypted folder mark, thank you very much, excellent clear instructions as always.

Degsy

You’re welcome :slight_smile:

I like this idea and have played around with it - and have found a problem.
When I come to delete an empty, encrypted folder I get the message:

“Some files cannot be moved to the rubbish bin because the
underlying file systems don’t support this operation.
Do you want to delete them instead?”

I said “yes” but this results in another error: “[foldername]: Error removing file: Device or resource busy.”
and the folder remains.
Any ideas?

To delete an encrypted folder

Click the Cryptkeeper tray icon … in the list, right-click the encrypted folder you want to delete … select “Delete encrypted folder

http://linuxforums.org.uk/MGalleryItem.php?id=1587

Perfect.
Thank you Mark.

No problem … I suppose I should have included that anyway, as it’s not very obvious.

Excellent. Saves messing about with Truecrypt.

One question. Does the folder have a ceiling for size? I mean will it stop at 4gb or 1gb for example?
Thanks

Not that I’m aware of, but I can’t currently guarantee it … I’m on a netbook with small SSD, and haven’t currently got 4GB spare to test the theory :wink:

I’ll create one on an external drive later and let you know.

I just created an encrypted folder on an 8GB USB stick and copied over 7GB of stuff into it, so I’m pretty confident the answer to your question is NO.

Though if the underlying file system has a single file size limit (as in the 4GB file size limit in FAT), I’d expect that to stil apply … ie. I created an encrypted folder on a FAT32 USB stick, now whilst there’s no limit to the amount of files I can put in there (if they’re each smaller than 4GB), it would probably still throw a fit if I attempted to put a single file larger than 4GB in it.

That ain’t gonna apply to the Linux file systems … which AFAIK don’t have the 4GB limit of FAT

Did that make sense ?

Thanks for that Mark, I installed it and it works great, a good way to hide ones darkest secrets

You might want to correct the typo on the second command…

mkddir -v ~/.config/autostart

Many thanks

Graeme

Fixed :slight_smile:

I must have read that through multiple times now, and not spotted it … cheers.

Yes Mark. It makes sense. Thanks for your help. :slight_smile: