Re: udisks2 configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 27 May 2018 at 10:45, François Patte
<francois.patte@xxxxxxxxxxxxxxxxxxxx> wrote:
> Le 26/05/2018 à 23:48, Ahmad Samir a écrit :
>>
>> You need a polkit rule; create a text file,
>> /etc/polkit-1/rules.d/filename.rules, and put something like this in
>> it:
>>
>> polkit.addRule(function(action, subject) {
>>     if (action.id == "org.freedesktop.udisks2.encrypted-unlock") &&
>>     subject.local &&
>>     subject.active &&
>>     subject.isInGroup("YOUR_USER_GROUP") ) {
>>             return polkit.Result.YES;
>>     }
>> });
>>
>> `man polkit` for more details, and there are many examples in
>> /usr/share/polkit-1/rules.d/* .
>
> Thank you for your quick answer, but I am sorry to say that it does not
> work for me... whatever the name I give to the rules file....
>
> Is there a way to debug udisksctl?
[...]

You said that by editing
/usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy , you got
it to work for non-root user. What did you edit exactly? because the
action you edited in that file, would be the action you have to use in
the .rules file in /etc/polkit-1/rules.d/.

I think you'd need to debug polkit, not udisksctl. IIRC if you press
cancel in the polkit authorisation window, an message is sent to the
system log about that, and usually it contains the exact action that
failed to be properly authorised.

(Sorry for the rather late reply, you mail got lost in my swamped inbox...).

--
Ahmad Samir
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx/message/76JBEXY5T6KOPUBWBXAAK4XW5V2FFF2O/



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux