cannot mount crypto-partitions without sudo

Bug #562579 reported by Allo
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
pmount (Debian)
Fix Released
Unknown
pmount (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: pmount

> LANG=C pmount sdd6
Internal error: cryptsetup luksOpen failed

> sudo pmount sdd6
works as expected.

Revision history for this message
pberndt (phillip-berndt) wrote :

This affects me too. I did not have this problem with 9.10. I believe pmount drops root permissions too early:

% pmount -d sdc2
..
spawnv(): executing /sbin/cryptsetup '/sbin/cryptsetup' 'isLuks' '/dev/sdc2'
spawn(): /sbin/cryptsetup terminated with status 0
spawnv(): executing /sbin/cryptsetup '/sbin/cryptsetup' 'luksOpen' '/dev/sdc2' '_dev_sdc2'
spawn(): /sbin/cryptsetup terminated with status 234

% ls -l /usr/bin/pmount
-rwsr-xr-- 1 root plugdev 39K 2009-11-07 18:50 /usr/bin/pmount

% /sbin/cryptsetup luksOpen /dev/sdc2 _dev_sdc2; echo $? # (as non-root user)
234

Also, for me sudo pmount works as expected.

Revision history for this message
pberndt (phillip-berndt) wrote :

Ps. This /is/ an ubuntu-specific problem. The latest version from git://git.debian.org/pmount/pmount.git works for me.

pberndt (phillip-berndt)
Changed in pmount (Ubuntu):
status: New → Confirmed
Changed in pmount (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.