This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Restrict common user access to system update on apper

Tags: None
(comma "," separated)
jribeiro
Registered Member
Posts
23
Karma
0
Hello!

How can I restrict common user access to system update on apper?
I'm using Fedora 20, KDE 4.13.1.
jribeiro
Registered Member
Posts
23
Karma
0
We have to create the file /etc/polkit-1/rules.d/00-local.rules with the following content:

Code: Select all
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.packagekit.system-update")) {
        polkit.log("action=" + action);
        polkit.log("subject=" + subject);
        return polkit.Result.AUTH_ADMIN_KEEP;
}
});


The polkit.log lines are optional, and you can use another result value if you prefer.
You can find details here: https://wiki.archlinux.org/index.php/Polkit and in 'man polkit'.

Thanks to Skull One a registered user at fedoraforum.org. :)
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Thanks for providing the solution here for future reference ;)


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]