LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-11-2008, 01:05 PM   #1
Ricio
Member
 
Registered: Sep 2003
Location: Colombia
Distribution: Debian
Posts: 220

Rep: Reputation: 30
truecrypt cant obtain root privileges


Im using debian lenny, and I have installed truecrypt 6.0a, and when I try to do an encrypted filesystem, or when I want to generate a key it prompts me for a password and I give it roots password, then I get an error prompt saying that truecrypt could not obtain administration privileges.

What should I do to fix this?

Im running truecrypt as a normal user.

Thank you all for your help!
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 07-11-2008, 05:16 PM   #2
simonapnic
Member
 
Registered: Jul 2008
Posts: 70

Rep: Reputation: 16
Post

Try to run it as root maybe ?
I guess it needs uid 0 privilleges ?
Just my 2 cents...
 
Old 07-11-2008, 05:54 PM   #3
Ricio
Member
 
Registered: Sep 2003
Location: Colombia
Distribution: Debian
Posts: 220

Original Poster
Rep: Reputation: 30
problem is that im running the graphical version, and I cant run it as root cuz root cant connect to X server, im going to have to try running it from console.
 
Old 07-12-2008, 07:12 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
See if you have the "sux" program. It is a wrapper around sudo that gives a program running as root access to the screen. (using xauth)

You could try "kdesu <program>" (or the gnome equivalent) to start the program.

Also, look in the logs. I don't know if your system uses PolKit. If so, there may be a policy that forbids it.
 
Old 07-12-2008, 09:04 AM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
FYI, not related by may prevent posts about True Crypt not working:

Be aware that the True Crypt developers are aware of a problem with True Crypt version above 4.3 performance on Linux. They claim that this is due to a bug in Linux that was fixed in the 2.6.25 kernel.

I have worked around this bug by using True Crypt v4.3 to create encrypted partitions, then using v5.x for everyday use. When you do this you cannot use the new features in v5.x. True Crypt can only do the things that v4.3 could do.

True Crypt v4.3 can be found on the System Rescue CD at http://www.sysresccd.org/Main_Page.
 
Old 07-15-2008, 06:04 PM   #6
Ricio
Member
 
Registered: Sep 2003
Location: Colombia
Distribution: Debian
Posts: 220

Original Poster
Rep: Reputation: 30
Im actually running kernel version 2.4.25-2 and still does not work so I guess the bug continues...
Ill try kdesu program, and Ill tell you what I did if i get it working.

Thank you.. any more replies are always appreciated.
 
Old 10-19-2008, 08:10 PM   #7
arniekat
LQ Newbie
 
Registered: Oct 2008
Location: Round Rock, TX
Distribution: Slackware 14.2
Posts: 18
Blog Entries: 66

Rep: Reputation: 6
Truecrypt binary root priveleges

The Truecrypt binary needs to have root privileges. I installed Truecrypt 6.0a on Slackware 12.1 and it gives me the same message. The fix is to create a group with the privilege of running the truecrypt binary and add your unprivileged (non-root) users to the truecrypt group so they can run Truecrypt. Do the following (need to su):
# groupadd truecrypt
Now you edit the sudoers file (must be done with vi!)
# visudo
Add the following 2 lines to the bottom of the sudoers file:
# Allow users of truecrypt group to run truecrypt as root.
%truecrypt ALL=(root) NOPASSWD:/usr/bin/truecrypt
Save it and exit visudo
Now add your regular users to the truecrypt group
# gpasswd -a regularuser1 truecrypt
# gpasswd -a regularuser2 truecrypt
The Truecrypt file containers default mount on:
/media/truecryptX
where X is the slot number you choose from the graphical interface when you mount the file container.
Thank you to the Gentoo Wiki.
 
1 members found this post helpful.
Old 10-19-2008, 08:11 PM   #8
arniekat
LQ Newbie
 
Registered: Oct 2008
Location: Round Rock, TX
Distribution: Slackware 14.2
Posts: 18
Blog Entries: 66

Rep: Reputation: 6
Truecrypt binary root privileges

The Truecrypt binary needs to have root privileges. I installed Truecrypt 6.0a on Slackware 12.1 and it gives me the same message. The fix is to create a group with the privilege of running the truecrypt binary and add your unprivileged (non-root) users to the truecrypt group so they can run Truecrypt. Do the following (need to su):
# groupadd truecrypt
Now you edit the sudoers file (must be done with vi!)
# visudo
Add the following 2 lines to the bottom of the sudoers file:
# Allow users of truecrypt group to run truecrypt as root.
%truecrypt ALL=(root) NOPASSWD:/usr/bin/truecrypt
Save it and exit visudo
Now add your regular users to the truecrypt group
# gpasswd -a regularuser1 truecrypt
# gpasswd -a regularuser2 truecrypt
The Truecrypt file containers default mount on:
/media/truecryptX
where X is the slot number you choose from the graphical interface when you mount the file container.
Thank you to the Gentoo Wiki.
 
2 members found this post helpful.
Old 11-29-2008, 04:58 PM   #9
dogugotw
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Rep: Reputation: 0
arniekat
Thank you! That was perfect (with a little help from elsewhere on how to use Vi...). Your directions work perfectly.
 
Old 09-11-2011, 04:57 PM   #10
robertobribeiro
LQ Newbie
 
Registered: Apr 2011
Distribution: Ubuntu 11.04 (natty x64)
Posts: 3

Rep: Reputation: 0
I was facing the same problem with Ubuntu, got it solved through arniekat's directions.

TrueCrypt 7.0a

Code:
$ uname -r -v -m
2.6.38-11-generic #49-Ubuntu SMP xxx xxx xx xx:xx:xx UTC 2011 x86_64
Code:
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 11.04
Release:	11.04
Codename:	natty
 
Old 12-29-2013, 08:56 AM   #11
repentorperish
LQ Newbie
 
Registered: Apr 2005
Location: Kigali, Rwanda
Distribution: Slackware 14.1 and 14.0, Ubuntu 14.04, CentOS 5
Posts: 14

Rep: Reputation: 1
Quote:
Originally Posted by arniekat View Post
The Truecrypt binary needs to have root privileges. I installed Truecrypt 6.0a on Slackware 12.1 and it gives me the same message. The fix is to create a group with the privilege of running the truecrypt binary and add your unprivileged (non-root) users to the truecrypt group so they can run Truecrypt. Do the following (need to su):
# groupadd truecrypt
Now you edit the sudoers file (must be done with vi!)
# visudo
Add the following 2 lines to the bottom of the sudoers file:
# Allow users of truecrypt group to run truecrypt as root.
%truecrypt ALL=(root) NOPASSWD:/usr/bin/truecrypt
Save it and exit visudo
Now add your regular users to the truecrypt group
# gpasswd -a regularuser1 truecrypt
# gpasswd -a regularuser2 truecrypt
The Truecrypt file containers default mount on:
/media/truecryptX
where X is the slot number you choose from the graphical interface when you mount the file container.
Thank you to the Gentoo Wiki.
Thanks for this, just want to say that the users you added to group truecrypt will probably have to log out and in again before the changes take effect in case that trips anyone else up. Still working fine on Slackware 14.0. You can mount in a non-default location with

truecrypt /path/to/encrypted/file /path/to/mount/point
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I obtain root thread priority (on non-root user)? paintballer1016 Linux - General 11 07-24-2007 03:02 PM
Help with running a Truecrypt volume as user, not root please eric11210 Linux - Software 4 01-09-2007 10:23 PM
Root privileges for user ar1 Linux - Security 2 01-07-2005 10:33 PM
How to mount without root privileges? ni0wn Slackware 3 09-15-2004 06:03 PM
root privileges and permissions evil_lafta Slackware 7 08-20-2003 10:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration