Polkit и монтирование usb дисков
При монтировании устройств, зачастую, polkit запрашивает пароль пользователя, чтобы убрать запрос авторизации необходимо изменить следующие настройки.
В файле
/usr/share/polkit-1/actions/org.freedesktop.udisks.policy
В файле
/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy
В файле
/usr/share/polkit-1/actions/org.freedesktop.udisks.policy
<action id="org.freedesktop.udisks.filesystem-mount">
<description>Mount a device</description>
...
<defaults>
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
В файле
/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy
<action id="org.freedesktop.udisks2.filesystem-mount">
<description>Mount a filesystem</description>
...
<defaults>
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>