Author Topic: Problem running TrueCrypt  (Read 1465 times)

Offline sfeinst

  • Full Member
  • ***
  • Posts: 149
Problem running TrueCrypt
« on: January 24, 2010, 04:02:42 PM »
I have truecrypt installed on a PC and it runs fine.  I have a new PC, loaded PCLOS and upgraded to kde4 (which my other PC had as well).  When I run truecrypt on the old PC, it asks for the admin password and then runs fine.  On this new PC, it does not ask for the admin password until I try to mount a file.  Then it asks for the volume password and then the admin password.  I tried entering root password and I tried entering my password.  Neither works.  The screen mentions something about being part of sudo.

Since my other PC runs fine, I'm not sure why sudo would be needed on this PC.

Any ideas on how to get truecrypt to work?

Offline tschommer

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1891
  • MLU and BLU (Bacon lovin' user)
Re: Problem running TrueCrypt
« Reply #1 on: January 24, 2010, 04:08:47 PM »
sfeinst,

if you change the following part of the system file /etc/sudoers from

Code: [Select]
# User privilege specification
root   ALL=(ALL) ALL

to

Code: [Select]
# User privilege specification
root   ALL=(ALL) ALL
%truecrypt ALL=(root) NOPASSWD:/usr/bin/truecrypt

and add the user to the truecrypt group you should be fine. The admin password will not be queried anymore.

I've been running it this way without any problems for over a year.

Torsten
Our defense is in the preservation of the spirit which prizes liberty as the heritage of all men, in all lands, everywhere."
Abraham Lincoln --September 11, 1858 Speech at Edwardsville, Illinois

Online muungwana

  • Hero Member
  • *****
  • Posts: 6205
Re: Problem running TrueCrypt
« Reply #2 on: January 24, 2010, 04:11:41 PM »
do you use the same version of truecrypt on the two computers?

newer versions expects to have a functional sudo when started without root privileges and this doesnt work because pclinuxos doesnt use sudo. A solution is to either set up sudo first or to always start it with root privileges
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline sfeinst

  • Full Member
  • ***
  • Posts: 149
Re: Problem running TrueCrypt
« Reply #3 on: January 24, 2010, 04:22:44 PM »
do you use the same version of truecrypt on the two computers?

newer versions expects to have a functional sudo when started without root privileges and this doesnt work because pclinuxos doesnt use sudo. A solution is to either set up sudo first or to always start it with root privileges
Yes they are the same version both have the latest from the repos.  I'll try the sudo route.

Thanks.

Offline sfeinst

  • Full Member
  • ***
  • Posts: 149
Re: Problem running TrueCrypt
« Reply #4 on: January 24, 2010, 04:32:08 PM »
sfeinst,

if you change the following part of the system file /etc/sudoers from

Code: [Select]
# User privilege specification
root   ALL=(ALL) ALL

to

Code: [Select]
# User privilege specification
root   ALL=(ALL) ALL
%truecrypt ALL=(root) NOPASSWD:/usr/bin/truecrypt

and add the user to the truecrypt group you should be fine. The admin password will not be queried anymore.

I've been running it this way without any problems for over a year.

Torsten

Thanks.  I tried this, but I get an error stating that my ID is not allowed to run sudo on localhost.

Offline sfeinst

  • Full Member
  • ***
  • Posts: 149
Re: Problem running TrueCrypt [Solved]
« Reply #5 on: January 24, 2010, 05:29:20 PM »
I went back to old machine to try to figure what was going on.  The menu choice for truecrypt used kdesu truecrypt.  I do not remember adding it, but I must have.  Doing that and modifying the mount options  to change the gid and umask, solved my problems.

Offline tschommer

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1891
  • MLU and BLU (Bacon lovin' user)
Re: Problem running TrueCrypt
« Reply #6 on: January 24, 2010, 07:04:17 PM »
Great to hear, sfeinst!
Our defense is in the preservation of the spirit which prizes liberty as the heritage of all men, in all lands, everywhere."
Abraham Lincoln --September 11, 1858 Speech at Edwardsville, Illinois

Offline Jag

  • Full Member
  • ***
  • Posts: 78
Re: Problem running TrueCrypt
« Reply #7 on: April 21, 2010, 10:59:22 AM »
Will anybody pl. give the work around in a simple way so that a newbie will understand?

I run truecrypt as root,but it cannot unmount ,so I have to give command
Code: [Select]
umount /media/truecrypt12  (supposing one has mounted  the file at '12')
then unmount the volume through 'truecrypt' and then through 'konqueror as su' delete[not move to trash] the folder 'truecrypt12'.
-J.L.Deshpande.
Registered Linux User #492893

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15281
  • ┌∩┐(◕_◕)┌∩┐
Re: Problem running TrueCrypt
« Reply #8 on: April 21, 2010, 11:02:47 AM »
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline Jag

  • Full Member
  • ***
  • Posts: 78
Re: Problem running TrueCrypt
« Reply #9 on: April 21, 2010, 12:08:45 PM »
-J.L.Deshpande.
Registered Linux User #492893

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15281
  • ┌∩┐(◕_◕)┌∩┐
Re: Problem running TrueCrypt
« Reply #10 on: April 21, 2010, 02:23:27 PM »
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000