Monday, May 21, 2012

Truecrypt password propmt only, no admin prompt. Ubuntu

I have been using Truecrypt for encryption. It always asks for the password to decrypt a drive, plus the admin password for the computer. I only want to enter the Truecrypt password to decrypt,  so the solution I found was in the Ubuntu forums.

First thing had to do was add a line to the /etc/sudoers file. I used

$sudo visudo

add this line to /etc/sudoers

# Users in the truecrypt group are allowed to run TrueCrypt as root.
%truecrypt ALL=(root) NOPASSWD:/usr/bin/truecrypt 

Then  I added  a group called truecrypt

$sudo addgroup truecrypt

than I added myself to the group

$sudo usermod -a -G truecrypt username

After this was done I did a reboot to get it work.