-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am not prompted for sudo actions in the GUI when connected via RdP #1584
Comments
When you say you aren't prompted, do you mean that you don't get GUI prompts to enter a password when you are expecting one? Can you give an example of something that doesn't work so we can have a look at it? Thanks, |
e.g. Setting a theme in System Settings > Login Screen (Sddm). |
Thanks. Policykit is used by a lot of desktop environments, and is responsible for allowing GUIs to perform privileged actions. What does the following command give you as output?
|
Also in my opinion it can be a polkit problem ... I tried to play with allow_inactive, but without success. |
It's almost certainly a polkit issue then, and you're on the right lines I think. The version of polkit you have is quite modern, and some of the advice on the internet will relate to earlier versions with PKLA - IIRC 0.105 is the latest version to support PKLA files but I could be wrong on that. Can you have a poke around in log files and see if you can find any errors related to polkit? This would verify that polkit is at the root of the problem, and let us start working on a rules file. |
This is indeed a polkit problem, but Manjaro doesn't make it easy to get to the bottom of it. For a start, the daemon logging is disabled, so you're not getting a lot of help here. I got round this by editing
I've commented out the original After that, if you Your example in question returned the following report:-
So the polkit action ID we're trying to authorize is There are lots of ways to proceed from here, but I aded my user
It's more complicated than it needs to be for this example. The idea is that as you find desktop actions you want to authorize, you can just add extra lines to the case statement. The daemon spots the file and loads it automatically. After that, the GUI works as expected, and I get the following report from the log:-
I hope that's reasonably clear, and I apologise for taking longer than I expected to get back to you. Is that useful? |
Really great answer! Thank you very much! |
In Manjaro 20.1 KDE I am not prompted for sudo actions in the GUI when connected via RdP.
Everything else works perfectly, but I can't do any action that requires administrator privileges from the GUI.
sudo and kdesu from Konsole, on the other hand, work correctly.
The text was updated successfully, but these errors were encountered: