Fedora 18 Virt-Manager pkla

poma pomidorabelisima at gmail.com
Fri Mar 29 18:34:10 UTC 2013


On 29.03.2013 13:31, Frank Murphy wrote:
> How to allow the regular user to start Virt-Manager without
> having to constantly insert password.
> 
> http://libvirt.org/auth.html
> "/etc/polkit-1/localauthority/50-local.d/"
> above dirs seem to be no longer in F18
> 
> there is
> /etc/polkit-1/rules.d/50-default.rules
> 
> I havn't a clue about the JS config required.
> https://bugzilla.redhat.com/show_bug.cgi?id=829883
> (http://davidz25.blogspot.ie/2012/06/authorization-rules-in-polkit.html)
> 
> Any example appreciated.
> 

su -c "groupadd libvirt"
su -c "gpasswd -a <USER> libvirt"
newgrp libvirt

su -c "cat <<'EOF' > /etc/polkit-1/rules.d\
/50-org.libvirt.unix.manage.rules
polkit.addRule(function(action, subject) {
    if (action.id == \"org.libvirt.unix.manage\" &&
        subject.isInGroup(\"libvirt\")) {
        return polkit.Result.YES;
    }
});
EOF"

virt-manager

man 8 polkit - Authorization Rules Examples ;)

poma



More information about the users mailing list