Skip to content

Question: Is it possible to grant selective Administrative access? #17096

Answered by martinpitt
SansVgy asked this question in Q&A
Discussion options

You must be logged in to vote

Using polkit rules to grant non-admin users additional privileges is generally right (that's the main purpose of polkit, after all). The problem is just that most cockpit pages are not expecting that -- they just check if the user can become root (via sudo), but almost all pages don't try to do an administrative action as normal user. (The only exception is the firewall page).

In many cases that's not even possible. E.g. the Accounts page calls programs like useradd or passwd, which don't support polkit. This is only possible for D-Bus APIs such as systemd. Specifically for the Services page we already have issue #16345 for that.

or at least restrict some of them even if the user is in A…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by martinpitt
Comment options

You must be logged in to vote
1 reply
@martinpitt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants