LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices

Reply
 
LinkBack Search this Thread
Old 12-24-2013, 10:04 AM   #1
rick0612
LQ Newbie
 
Registered: Jan 2006
Posts: 12

Rep: Reputation: 0
Truecrypt and sudoers


Hello everyone,

Changes to the sudoers file seem to be ignored by Mint. The changes are made using visudo and the same line works in other distros. What happens is truecrypt requests the password for the encryption but then requests the user/administrator's password. This happens in Mint 15 Mate and KDE and Mint 16 KDE. In other distros only the encryption password is required.
None of these lines work:

%truecrypt ALL=(ALL) NOPASSWD: /usr/bin/truecrypt
%truecrypt ALL=(root) NOPASSWD: /usr/bin/truecrypt
username ALL=(ALL) NOPASSWD: /usr/bin/truecrypt
username ALL=(root) NOPASSWD: /usr/bin/truecrypt

Of course there is a group truecrypt with a user added.

Does anyone know why Mint ignores these additions to sudoers?

Thanks
 
Old 12-25-2013, 08:00 AM   #2
saivinoba
LQ Newbie
 
Registered: Oct 2007
Distribution: Slackware, Linux Mint
Posts: 27

Rep: Reputation: 5
The second time truecrypt asks password is because it mounts under /mnt (eg. /mnt/truecrypt1) for which only root has previlages.

I also use truecrypt (not used with Mint though) and this irritates me as well. But I had never bothered to work on it. Now that you have opened a thread asking for help, I would subscribe and see what others have to say.

I will not have access to my laptop so cannot test any of the suggestions. But there could be two possibilities.
1. there may be a setting in truecrypt's configuration. Take a look at it.
2. if we create a custom polkit authorization to let ordinary user to mount system internal partition, this problem may go.
 
Old 12-26-2013, 11:22 AM   #3
saivinoba
LQ Newbie
 
Registered: Oct 2007
Distribution: Slackware, Linux Mint
Posts: 27

Rep: Reputation: 5
Hi,

I'm sorry truecrypt mounts under /media, not under /mnt as mentioned in my earlier post and no polkit authorization hacks required.

I installed truecrypt on this netbook with Mint 16 (Xfce) and changes to sudoers as you have tried works!

My entry in sudoers looks like this
Code:
TRUECRYPT ALL=(ALL)NOPASSWD:/usr/bin/truecrypt
where TRUECRYPT is a user alias to include all my usernames on this netbook.

This worked. Then I removed user alias line and put my username instead of TRUECRYPT, it still worked. I then put another user's username. This time I could not mount the truecrypt volume _as me_. But when I logged out and logged in as that other user, truecrypt mounting works just fine.

Don't know why it's not working for you. Just checking, did you exit truecrypt fully, launched again and tried? Also, I have 'never save history' checked.

Last edited by saivinoba; 12-26-2013 at 11:30 AM.
 
Old 12-27-2013, 07:50 AM   #4
rick0612
LQ Newbie
 
Registered: Jan 2006
Posts: 12

Original Poster
Rep: Reputation: 0
That's odd. Perhaps the issue is just with the KDE versions of Mint. As I said in the op, this works perfectly in other distro KDE (PCLOS). I haven't tried other flavors of Mint.

Thanks for the input. Maybe someone can come up with the answer as to why it works in Mint XFCE and not in Mint KDE.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] User not in sudoers: How to add user? Permtion Denied for sudoers file esgol Linux - Newbie 3 07-13-2012 07:44 AM
Fedora /etc/sudoers file and sudoers.d directory davejjj Linux - Newbie 2 10-21-2011 06:19 PM
[SOLVED] Automount Truecrypt, Truecrypt command lline OS Arch Linux yanfaun Linux - Software 5 09-26-2010 07:37 PM
Truecrypt Or Truecrypt Alternative On Centos? b10m3ch4 Linux - Server 5 12-18-2009 03:42 AM
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM


All times are GMT -5. The time now is 11:08 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration