| Summary: | Editing the "sudoers" file to use Truecrypt as normal User with no need for root rights to mount the unencrypted volume fails | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Uli Selle <uli.effer> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | sudo-1.8.8-2.mga4 | CVE: | |
| Status comment: | |||
|
Description
Uli Selle
2013-10-23 08:55:33 CEST
I'm not a sudo expert, but maybe there were some upstream changes that need some syntax adjustments for what you're trying to do: http://www.sudo.ws/sudo/stable.html#1.8.8 Also, note that it's better to not use visudo or edit the sudoers file, but to add new sudoers information into a new file in /etc/sudoers.d Hello, now I did the following: - read Major Changes of Sudo from your link from 1.8.6p8 to 1.8.8 - could not find any reason why the first proceeding did'nt work, ist not pretty to edit the " sudoers " file directly but it should work, if I do. - installed " sudo-1.8.8-2.mga4 " - took a look in the " sudoers " - it is default - no changes - last line is " #includedir /etc/sudoers.d " so it should look at this directory and file. Then created the file: su touch /etc/sudoers.d/ergaenzungen chmod 0440 /etc/sudoers.d/ergaenzungen nano /etc/sudoers.d/ergaenzungen # Defaults requiretty # Truecrypt Volumes mounten %truecrypt ALL=(root) NOPASSWD:/usr/bin/truecrypt Saved and exited it, then reboot the machine. Next entered Truecrypt again and tried to mount the volume - same behaviour as described in my first post. After this I reinstalled "sudo-1.8.6p7-1.mga3" to see if this version uses the " /etc/sudoers.d/ergaenzungen " but it does'nt. The only way to let Truecrypt work like I expect, is to use "sudo-1.8.6p7-1.mga3" and edit the " sudoers " file directly. Do You have an idea what I did wrong? The sudo from Mageia 3 certain does read the files in /etc/sudoers.d, so it should still work with that version. Looking more closely at this, I'm not sure that there's a way to override the Defaults requiretty line in /etc/sudoers with another entry in another file, so maybe at least for that, the visudo was still needed. Also, make sure really have commented that line out, and not just added another commented copy about it, I think sudo 1.8.8 enforces requiretty more strictly (although I think if sudo fails because of that it gives an error message rather than still asking for a password). BTW, does "which truecrypt" return /usr/bin/truecrypt? I was just thinking maybe if /bin was in your PATH first and it was resolving to /bin/truecrypt, that wouldn't match what you put in sudoers. Looking at your %truecrypt syntax, is your user a member of a group called truecrypt? If you still can't get it to work, you might want to see with sudo upstream if they can help. After Update of sudo from "sudo-1.8.8-2.mga4" to "sudo-1.8.8-3.mga4" all is working well. Tested it on two different machines with two kernels, I think it is the sudo package which makes the difference. I didn't change the "sudoers" configuration... Status:
NEW =>
RESOLVED |