Author Topic: [Solved]truecrypt and sudoers  (Read 2292 times)

Offline thinkpol

  • New Friend
  • *
  • Posts: 7
[Solved]truecrypt and sudoers
« on: July 09, 2011, 06:48:12 PM »
I'm trying to set up truecrypt and am having trouble with the sudoers file.  I found this post but the recommendation doesn't work:http://www.pclinuxos.com/forum/index.php/topic,67768.0.html.
I get a message saying my account isn't in sudoers and I'll be reported.  Does this go on my permanent record? ???

I've added this line to sudoers using visudo: %truecrypt ALL=(root) NOPASSWD:/usr/bin/truecrypt
I've also created a truecrypt group and added my account to the group.

I could add my account to the sudoers in a manner that would let me run sudo for everything but in my search I came across a post about sudo abuse and misuse and I'm pretty sure that's what old-polack referred to as "In the manner of the Buntus."

How do I do this the pclos way?

Thanks,
Vince
« Last Edit: July 10, 2011, 03:18:21 PM by thinkpol »

Offline Mac

  • Full Member
  • ***
  • Posts: 197
  • Boldly going where most geeks have gone before!
Re: truecrypt and sudoers
« Reply #1 on: July 09, 2011, 06:52:24 PM »
Simply run truecrypt as root. "kdesu truecrypt" or "gksu truecrypt" ... works for me like a charm.  Just make sure you change the permissions of the truecrypt volumes to be your username, not root.

Toshiba Satellite A305D

Offline thinkpol

  • New Friend
  • *
  • Posts: 7
Re: truecrypt and sudoers
« Reply #2 on: July 09, 2011, 10:06:18 PM »
Thanks Mac.  I've tried that before and it does work but then you have to open a root dolphin to work with the volume and I'd rather not do that. 

I made the above procedure work once before but for the life of me I don't remember how.

Thanks again though.

Vince

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6245
Re: truecrypt and sudoers
« Reply #3 on: July 09, 2011, 10:10:05 PM »

open the terminal, run this command and give the output

cat /etc/group | grep -i truecrypt
.. 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 thinkpol

  • New Friend
  • *
  • Posts: 7
Re: truecrypt and sudoers
« Reply #4 on: July 10, 2011, 06:21:31 AM »
Quote
open the terminal, run this command and give the output

cat /etc/group | grep -i truecrypt

truecrypt:x:503:owner,vince

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6245
Re: truecrypt and sudoers
« Reply #5 on: July 10, 2011, 12:47:20 PM »

your setup says it should work

open the terminal and type the following command and see if it will work. you have to call sudo with the full path to the executable as it appears in the sudoers file.

sudo /usr/bin/truecrypt
.. 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 thinkpol

  • New Friend
  • *
  • Posts: 7
Re: truecrypt and sudoers
« Reply #6 on: July 10, 2011, 03:17:59 PM »
Thanks muungwana.  That worked and then the next time I started truecrypt without sudo it worked as well. 

Not sure what I was doing wrong but it now works just like it's supposed to.

Thanks again,
Vince