On Thu, Sep 13, 2012 at 1:50 AM, Walter Dnes <waltd...@waltdnes.org> wrote:
> On Wed, Sep 12, 2012 at 09:03:50AM +0100, Neil Bothwick wrote
>
>> I don't understand, why are you using sudo to run pmount when its core
>> purpose is to be run by normal users?
>>
>> % whatis pmount
>> pmount  (1)  - mount arbitrary hotpluggable devices as normal user
>
>   A normal user can pumount *WHAT THAT SAME USER* has pmounted.  Now try
> for a general solution.

The general solution is using something like udisks+polkit. That is a
true general solution; otherwise you end up like the author of
calibre, with a security mess on his hands:

https://bugs.launchpad.net/calibre/+bug/885027

If you dismiss the security implications of sudoing pmount, because
you care only about *your* use cases, on *your* machine, by definition
that is not a "general solution".

Of course, udisks/polkit/etc. goes hand in hand with udev, so you are
probably not interested in using them. That is completely fine.

Just don't call it a "general solution".

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México

Reply via email to