New authorization required for mundane activities

MR ZenWiz mrzenwiz at gmail.com
Mon Sep 28 06:18:25 UTC 2015


On Sun, Sep 27, 2015 at 7:39 PM,  <silver.bullet at zoho.com> wrote:
> On Sun, 27 Sep 2015 21:37:04 -0400, Tom H wrote:
>>I never use flash drives but
>>"org.freedesktop.udisks2.filesystem-mount" should allow me to mount
>>one without having to supply a password. Are your polkit settings
>>different?
>
> There is a typo in my other reply, it should read ...
>
> [root at moonstudio ~]# grep "org.freedesktop.udisks2.filesystem-mount" -A70 /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy | grep -v description | grep -v message
>   <action id="org.freedesktop.udisks2.filesystem-mount">
>     <defaults>
>       <allow_any>auth_admin</allow_any>
>       <allow_inactive>auth_admin</allow_inactive>
>       <allow_active>yes</allow_active>
>     </defaults>
> --
>   <action id="org.freedesktop.udisks2.filesystem-mount-system">
>     <defaults>
>       <allow_any>auth_admin</allow_any>
>       <allow_inactive>auth_admin</allow_inactive>
>       <allow_active>auth_admin_keep</allow_active>
>     </defaults>
>   </action>
> --
>   <action id="org.freedesktop.udisks2.filesystem-mount-other-seat">
>     <defaults>
>       <allow_any>auth_admin</allow_any>
>       <allow_inactive>auth_admin</allow_inactive>
>       <allow_active>auth_admin_keep</allow_active>
>     </defaults>
>   </action>
>
>
>   <action id="org.freedesktop.udisks2.filesystem-fstab">
> [root at moonstudio ~]#
>
> I don't use USB-sticks, but I suspect
>
> <allow_active>yes</allow_active> </defaults>
>
> does the trick, perhaps a "yes" for the other lines of
> "<action id="org.freedesktop.udisks2.filesystem-mount">"
> is required too.
>

Here is what mine shows:

3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"

$ grep "org.freedesktop.udisks2.filesystem-mount" -A70
/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy | grep -v
"<description " | grep -v message
  <action id="org.freedesktop.udisks2.filesystem-mount">
    <description>Mount a filesystem</description>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>


  <action id="org.freedesktop.udisks2.filesystem-mount-system">
    <description>Mount a filesystem on a system device</description>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>


  <action id="org.freedesktop.udisks2.filesystem-mount-other-seat">
    <description>Mount a filesystem from a device plugged into another
seat</description>
    <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>


  <action id="org.freedesktop.udisks2.filesystem-fstab">
    <description>Mount/unmount filesystems defined in the fstab file
with the x-udisks-auth option</description>

So it is pretty much the same as yours.

What bugs me more about this than anything else is that it changed and
I don't know when, how or why, or how to reverse it.

Thanks.
MR




More information about the ubuntu-users mailing list