Truecrypt

Those new to MEPIS or not very experienced can post their questions here.
Message
Author
dyfi
Forum Regular
Forum Regular
Posts: 137
Joined: Sat Jan 01, 2011 10:13 am

Truecrypt

#1 Postby dyfi » Sat Jan 01, 2011 10:16 am

Hi,

Before downloading and installing Mepis, will the program Truecrypt work OK? It seems a weakness with Debian OS.

Regards,

Dyfi.

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 15202
Joined: Wed Jul 19, 2006 6:13 am

Re: Truecrypt

#2 Postby Jerry3904 » Sat Jan 01, 2011 10:42 am

It is reported to run perfectly on Debian Squeeze, so should be fine in MEPIS 11. Not sure about MEPIS 8.5, but somebody here probably knows.
Production: 4.2.0-0.bpo.1-amd64, MX-15 RC1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 3.16-0-4-686-pae. MX-15, AMD C-60 APU, 4 GB

User avatar
lucky9
Forum Veteran
Forum Veteran
Posts: 12359
Joined: Wed Jul 12, 2006 5:54 am

Re: Truecrypt

#3 Postby lucky9 » Sat Jan 01, 2011 12:23 pm

Older versions of MEPIS have been able to use it. I would bet that it would work now also. Look here for the old howto: http://www.mepis.org/docs/en/index.php?title=Truecrypt
Yes, even I am dishonest. Not in many ways, but in some. Forty-one, I think it is.
--Mark Twain

User avatar
zuser
Forum Regular
Forum Regular
Posts: 165
Age: 70
Joined: Wed Jul 12, 2006 6:26 pm

Re: Truecrypt

#4 Postby zuser » Sat Jan 01, 2011 3:02 pm

I haven't been able to get it to work on sm8.5-64 bit but it does work perfectly on the same computer running openSUSE 11.3-64.

User avatar
chatan
Forum Regular
Forum Regular
Posts: 798
Joined: Fri Oct 17, 2008 8:19 pm

Re: Truecrypt

#5 Postby chatan » Sun Jan 02, 2011 2:41 am

This (truecrypt) is something I've been meaning to do for some time now. So I tried it... Here is Quick and Dirty report of what I just found on MEPIS 8.5 64 Bit with TrueCrypt 7.0a:

I could download and install, but only if I ran the installer as root. (If ran as user, the installer wouldn't accept the root password - user is not in the sudoers file.)

To run TrueCrypt, I have to start it as root (ALT-F2 >>> kdesu /usr/bin/truecrypt )
(Again, if ran as user, it wouldn't accept the root password - user is not in the sudoers file).

I was able to create, mount and put files in and out of the encrypted partition.

I'll add what I did to the wiki, but maybe the root vs user isn't the way it was supposed to go ? I'm not sure and I'm outta time for now.

Cheers

chrispop99
Forum Guide
Forum Guide
Posts: 1436
Age: 70
Joined: Tue Jan 27, 2009 3:07 pm

Re: Truecrypt

#6 Postby chrispop99 » Sun Jan 02, 2011 6:02 am

chatan wrote:This (truecrypt) is something I've been meaning to do for some time now. So I tried it... Here is Quick and Dirty report of what I just found on MEPIS 8.5 64 Bit with TrueCrypt 7.0a:

I could download and install, but only if I ran the installer as root. (If ran as user, the installer wouldn't accept the root password - user is not in the sudoers file.)

To run TrueCrypt, I have to start it as root (ALT-F2 >>> kdesu /usr/bin/truecrypt )
(Again, if ran as user, it wouldn't accept the root password - user is not in the sudoers file).

I was able to create, mount and put files in and out of the encrypted partition.

I'll add what I did to the wiki, but maybe the root vs user isn't the way it was supposed to go ? I'm not sure and I'm outta time for now.

Cheers


Your experience mimics exactly what I found with TrueCrypt on MEPIS 8 (32) when I tried it a while back.

I also managed to create a 15GB "container" in /mnt, instead of actually on the USB stick I wanted encrypted! This filled up my / partition almost completely, and caused some bewilderment until I realised what had happened.

Chris

User avatar
timkb4cq
Forum Veteran
Forum Veteran
Posts: 3398
Joined: Wed Jul 12, 2006 4:05 pm

Re: Truecrypt

#7 Postby timkb4cq » Sun Jan 02, 2011 10:41 am

You need to set up the /etc/sudoers file in order to use programs like TrueCrypt that demand sudo. The easiest secure way to do this is to add an entry to allow your user to run just the one command you need to.

There is a program called visudo for modifying /etc/sudoers which checks for syntax errors and should be used whenever editing that file.

Open a Konsole

Code: Select all

su
<enter your root password here>
visudo

Edit the file to read like so:

Code: Select all

# sudoers file.
#
# This file MUST be edited with the "visudo" command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root   ALL=(ALL) ALL
myusername   localhost = /path/to/truecrypt

Where you replace "myusername" with your username and "/path/to/truecrypt" with its actual location (I don't have it installed, so I don't know where it gets put).
In visudo, <ctrl>+o saves and <ctrl>+x exits. When you exit, syntax is checked. If you've made any errors they are described, then you are asked "What now?" Press e to continue editing or ? for other options.

When you are done, then sudo should work for that purpose.

Alternatively, you can set sudo up to allow your user to run any command on your machine by using the line

Code: Select all

myusername   localhost = ALL
instead of using the path to that one file. But if you're bothering to run truecrypt in the first place do you want to open that security hole if someone gets your user password?

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 15202
Joined: Wed Jul 19, 2006 6:13 am

Re: Truecrypt

#8 Postby Jerry3904 » Sun Jan 02, 2011 10:51 am

Good explanation, Tim! I will put this in the Wiki for general use.

Done (plz review):
http://www.mepis.org/docs/en/index.php?title=Sudo
Production: 4.2.0-0.bpo.1-amd64, MX-15 RC1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 3.16-0-4-686-pae. MX-15, AMD C-60 APU, 4 GB

User avatar
lucky9
Forum Veteran
Forum Veteran
Posts: 12359
Joined: Wed Jul 12, 2006 5:54 am

Re: Truecrypt

#9 Postby lucky9 » Sun Jan 02, 2011 3:38 pm

Looks good from here.

Did you add to the TrueCrypt page in the Wiki? It's been a good while since I've been on that page and it seems more comprehensive than it was. :rockon:
Yes, even I am dishonest. Not in many ways, but in some. Forty-one, I think it is.
--Mark Twain

User avatar
chatan
Forum Regular
Forum Regular
Posts: 798
Joined: Fri Oct 17, 2008 8:19 pm

Re: Truecrypt

#10 Postby chatan » Sun Jan 02, 2011 7:30 pm

timkb4cq wrote:You need to set up the /etc/sudoers file in order to use programs like TrueCrypt that demand sudo. The easiest secure way to do this is to add an entry to allow your user to run just the one command you need to.


I can see where doing this is definitely needed on a multiple user system. But on a single user system is there any harm/risks by not messing with the sudoers file, and just installing and running truecrypt as root?

Cheers


Return to “Newbies”

Who is online

Users browsing this forum: No registered users and 1 guest