Author Topic: How to create an encrypted password protected folder in Peppermint  (Read 1825 times)

0 Members and 1 Guest are viewing this topic.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14016
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
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:
Code: [Select]
sudo apt-get install cryptkeeper
then to make cryptkeeper autostart at login, run:
Code: [Select]
mkdir -v ~/.config/autostart
(don't worry if that last command fails, it just means the directory already exists .. just carry on below)
then:
Code: [Select]
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:-


Select "New encrypted folder" .. and you'll be presented with this dialog:-


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


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

That's it .. you're done :)

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):-


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 ;)

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 ;)



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

--
« Last Edit: September 30, 2013, 09:06:29 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Toonman

  • Hero Member
  • *****
  • Posts: 893
  • Karma: 15
  • Freeing the World form the Microsoft scurge!
    • View Profile
    • Awards
Re: How to create an encrypted password protected folder in Peppermint
« Reply #1 on: August 22, 2013, 06:05:35 am »
Excellent.  Thanks Mark.  :)
Life is for living.  RIP Keith Floyd.   ;)

Offline Melissa

  • Vintage geek
  • Hero Member
  • *****
  • Posts: 740
  • Karma: 0
  • Gender: Female
  • I am fairly new to Linux
    • View Profile
    • Awards
Re: How to create an encrypted password protected folder in Peppermint
« Reply #2 on: August 23, 2013, 01:06:21 am »
Thanks for that- didn't even know that could be done.
In a world without fences and walls, who needs Gates and Windows?

Using two computers- Peppermint on old HP laptop and Mint on new Dell netbook.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14016
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: How to create an encrypted password protected folder in Peppermint
« Reply #3 on: August 23, 2013, 12:37:34 pm »
You're both welcome :)
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Degsy

  • Sr. Member
  • ****
  • Posts: 262
  • Karma: 2
  • Gender: Male
  • I am getting there, but it is very slow going!
    • View Profile
    • Awards
Re: How to create an encrypted password protected folder in Peppermint
« Reply #4 on: August 23, 2013, 07:24:39 pm »
Created the Encrypted folder mark, thank you very much, excellent clear instructions as always.

Degsy

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14016
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: How to create an encrypted password protected folder in Peppermint
« Reply #5 on: August 23, 2013, 07:27:05 pm »
You're welcome :)
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Keith

  • Hero Member
  • *****
  • Posts: 505
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: How to create an encrypted password protected folder in Peppermint
« Reply #6 on: September 29, 2013, 05:03:54 pm »
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?

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14016
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: How to create an encrypted password protected folder in Peppermint
« Reply #7 on: September 29, 2013, 06:05:56 pm »
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"

WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Keith

  • Hero Member
  • *****
  • Posts: 505
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: How to create an encrypted password protected folder in Peppermint
« Reply #8 on: September 29, 2013, 09:44:11 pm »
Perfect.
Thank you Mark.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14016
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: How to create an encrypted password protected folder in Peppermint
« Reply #9 on: September 29, 2013, 10:11:44 pm »
No problem .. I suppose I should have included that anyway, as it's not very obvious.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Toonman

  • Hero Member
  • *****
  • Posts: 893
  • Karma: 15
  • Freeing the World form the Microsoft scurge!
    • View Profile
    • Awards
Re: How to create an encrypted password protected folder in Peppermint
« Reply #10 on: September 30, 2013, 01:27:04 pm »
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
Life is for living.  RIP Keith Floyd.   ;)

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14016
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: How to create an encrypted password protected folder in Peppermint
« Reply #11 on: September 30, 2013, 02:12:23 pm »
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 ;)

I'll create one on an external drive later and let you know.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14016
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: How to create an encrypted password protected folder in Peppermint
« Reply #12 on: September 30, 2013, 08:32:50 pm »
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 ?
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2681
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: How to create an encrypted password protected folder in Peppermint
« Reply #13 on: September 30, 2013, 08:54:50 pm »
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.....
Quote
mkddir -v ~/.config/autostart


Many thanks



Graeme
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14016
  • Karma: 348
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: How to create an encrypted password protected folder in Peppermint
« Reply #14 on: September 30, 2013, 09:07:32 pm »
Fixed :)

I must have read that threw multiple times now, and not spotted it .. cheers.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal