Comment 5 for bug 48118

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 48118] Re: pmount should not refuse to mount nonremovable drives without fstab entry

Hi,

DeepApple [2006-09-27 10:50 -0000]:
> If user has sudo rights (is in admin group) then pmount (gnome-vfs)
> should allow him to mount hard disk partitions -

If you can do 'sudo pmount /dev/hda2 mylabel', then doing
'sudo mkdir -p /media/mylabel; sudo mount /dev/hda2 /media/mylabel'
(or the more common case 'sudo mount /dev/hda2 /mnt') is not all that
much different, is it?

I am hesitant about introducing such hacks into pmount. pmount is not
meant to be a convenience wrapper around mount, but a policy checking
layer to allow users to do things they cannot do with mount. Poking
holes into that layer makes it much more prone to bugs and
vulnerabilities.

If you have sudo rights, wrapping mount into a gksudo call should be
done in some non-setuid frontend at a higher level.