Getting rid of NetworkManager authorization prompts

October 7, 2018

Not exactly rocket science but since it took me a while to find out I’ll keep this here for future reference: to get rid of NetworkManager authorization prompts in openSUSE Leap 15.0 and similar distros, create /etc/polkit-1/rules.d/80-networkmanager-allow-users-group.rules:

polkit.addRule(function(action, subject) {
    if (/^org\.freedesktop\.NetworkManager\./.test(action.id) &&
        subject.local && subject.active && subject.isInGroup("users"))
    {
            return polkit.Result.YES;
    }
});

Tags: , , ,
Posted in openSUSE by Pieter Hollants

Follow comments via the RSS Feed| Trackback URL

 
Copyright © 2020 by Pieter Hollants. All rights reserved. - Legal notices & Privacy policy