![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
5 Cups of Ubuntu
![]() Join Date: Jan 2007
Beans: 29
|
HOWTO: Remounting home directory with truecrypt drive on session start
Quick Head Up: This is a current work in progress and is being tested by a couple of users that I know. In the future I'll have it packaged in a .deb, but don't want to go the hassle while it's still under bug fixes.
So after searching high and low for an easier to use security system for linux I decided to roll my own. The following requirements had to be met:
I went through quite a few revisions before coming up with the following soliution. Basically what I decieded to do was make it so that after a login the user is prompted for the encryption password. This password is used to remount the login home directory with the TrueCrypt partition that the key unlocks. If you are familiar with TrueCrypt, this means that there is just one password prompt and it will either mount the encrypted drive or the hidden drive (which is the plausible deniability drive.) Preconfiguration not currently scripted:
Known Issues:
ephro |
|
|
|
|
|
#2 |
|
Ubuntu Extra Shot
![]() Join Date: Nov 2007
Location: Boston, USA
Beans: 367
Ubuntu 9.04 Jaunty Jackalope
|
Re: HOWTO: Remounting home directory with truecrypt drive on session start
Thanks a lot for this -- just tried it out and it works.
I booted Gutsy into single user mode in order to copy all my files from my old home directory to the TC volume. Hit "exit" and the boot continued as normal and I was able to log in...viola. Been a long time TC user (2+ years on WIndows and 2+ months on Ubuntu). However, I did notice that for some reason the read/write performance to my home directory is really slow. Any thoughts? |
|
|
|
|
|
#3 |
|
First Cup of Ubuntu
![]() Join Date: Dec 2007
Beans: 3
|
Re: HOWTO: Remounting home directory with truecrypt drive on session start
ephro, thanks for your solution!
but at my ubuntu 7.10 gdm postlogin script doesn't work (yes, I rename Default.sample to Default and use gnome) how I can fix them ? |
|
|
|
|
|
#4 | |
|
5 Cups of Ubuntu
![]() Join Date: Jan 2007
Beans: 29
|
Re: HOWTO: Remounting home directory with truecrypt drive on session start
Quote:
ephro |
|
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() Join Date: Dec 2007
Beans: 3
|
Re: HOWTO: Remounting home directory with truecrypt drive on session start
Thanks for fast reply.
here is the solve Code:
sudo chmod 0755 /usr/share/truehomecrypt/scripts/PostLogin Code:
cat /var/log/syslog | grep gdmDec 22 16:29:48 localhost gdm[5086]: WARNING: gdm_slave_session_start: Скрипт PostLogin вернул значение > 0. Происходит аварийное окончание работы. Dec 22 16:37:15 localhost gdm[5086]: WARNING: gdm_slave_xioerror_handler: Фатальная ошибка X - Перезапуск :0 Dec 22 16:56:43 localhost gdm[5084]: WARNING: gdm_slave_session_start: Скрипт PostLogin вернул значение > 0. Происходит аварийное окончание работы. |
|
|
|
|
|
#6 |
|
Ubuntu Extra Shot
![]() Join Date: Nov 2007
Location: Boston, USA
Beans: 367
Ubuntu 9.04 Jaunty Jackalope
|
Re: HOWTO: Remounting home directory with truecrypt drive on session start
I found another approach to doing this that uses the PAM facility that comes with Ubuntu. It worked great:
http://www.fstab.de/twiki/bin/view/Main/PamTruecrypt Please note that in order to get it to compile I needed add: Code:
#include <sys/syslog.h> Other than this little glitch it works exactly like TCGINA -- and reuses your login password to mount the truecrypt partition -- without storing your password anywhere! Cool, eh? |
|
|
|
|
|
#7 |
|
Way Too Much Ubuntu
![]() Join Date: Dec 2006
Location: Europe
Beans: 231
|
Re: HOWTO: Remounting home directory with truecrypt drive on session start
Any idea on how to do this with KDE?
BTW http://www.fstab.de/twiki/bin/view/Main/PamTruecrypt is unavailable Yet cached here: http://cc.msnscache.com/cache.aspx?q...0bbb&FORM=CVRE |
|
|
|
|
|
#8 |
|
First Cup of Ubuntu
![]() Join Date: Aug 2009
Beans: 2
|
Re: HOWTO: Remounting home directory with truecrypt drive on session start
is anyone have same issue on truecrypt usage http://forums.truecrypt.org/viewtopic.php?t=15761 ?
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|