Adding permissions for udiskie-mount to policykit

Miloslav Trmac mitr at redhat.com
Thu Apr 21 12:43:45 UTC 2016


Hello,
2016-04-20 18:59 GMT+02:00 Faheem Mitha <faheem at faheem.info>:

> When I try to mount an external USB drive using udiskie-mount from
> inside a cron job, I get an error as follows below. Using
> udiskie-mount directly from the command line works fine.
>
<snip>

> From a big picture perspective, I don't really understand why mounting
> directly from the command line is treated differently from a cron
> job. Can someone enlighten me?
>

polkit is treating “local users” and “active local users” differently
(precisely so that users who are physically able to insert or remove a disk
can mount/unmount it). A cron job is, I expect, classified as neither a
local user nor as an active local user.

I’m afraid I don’t think there are standalone format validators / testing
tools for the permission files; check system logs, and output of polkitd to
stdout/stderr (running it without --no-debug, and perhaps with
G_MESSAGES_DEBUG=all in the environment).
    Mirek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/polkit-devel/attachments/20160421/f0ea7835/attachment.html>


More information about the polkit-devel mailing list