password input pop-up window is not working in some cases. #2272
-
By that I mean something like this screenshot: https://devanswers.co/wp-content/uploads/2021/01/authentication-is-required-to-create-a-color-managed-device.png I have tested multiple distributions and multiple desktop environments with XRDP and all of them had issues with that sort of dialogue. In some cases, the dialogue does not appear at all (thus the app fails), and in some cases, it appears for some apps, but not for other apps. For example, for Ubuntu 22.04, that dialogue shows up for the colour profile creation, but not for other things like Settings -> Users -> Unlock. Pressing that button should show that password dialogue, but in an XRDP session, it shows nothing.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Editied title 'cause it's not sudo. |
Beta Was this translation helpful? Give feedback.
-
@HubKing - you'll need to look into polkit and how it works. In short, a remote session does not have the privileges a local session has. This is for good reasons - depending on your use-case(s) you may not want a remote user to have the same control over the system a local user does. On a shared system for example, remote users should not be installing updates or shutting down the system. On a single user system, you probably do want to allow that. xrdp is treated as a remote session by polkit. We have no control over that, or the default local policies a particular distro may choose to install. A wiki page would be great in theory, but not only is it a lot or work to create, but more importantly for us, it will also be a lot of work to maintain because of the level it will need to be pitched at. At the moment we simply don't have the effort available. I hope the rest of this post will illustrate that. I'll BRIEFLY take your example which is a dialog containing the text "Authentication is required to create a color managed device". I'm not explaining this in a lot of detail, but anyone knowing a bit about polkit should be able to follow this. First thing is to identify the distribution. I don't have Ubuntu 22.04 handy right now, but I've got 20.04, where the same happens. I'll use that as you say you've tried a few. The distribution is important as this determines:-
polkit itself comes in two flavours - the 0.105 version and earlier, and later versions. Many distros, including Debian and its derivatives, have chosen to stick with 0.105 and earlier because it is (arguably) more secure by not using Javascript to define actions. On my Ubuntu 20.04 machine I log in, get the "Authentication is required to create a color managed device" and hit cancel. I can now look in
So the polkit action is I can query how polkit defines the action with:-
The The We can override this prompt by creating a .pkla file for polkit 0.105. I'll call it
After restarting the polkit daemon with That's a really simple example, but I hope it gives you an idea of what polkit is doing and why. |
Beta Was this translation helpful? Give feedback.
@HubKing - you'll need to look into polkit and how it works.
In short, a remote session does not have the privileges a local session has. This is for good reasons - depending on your use-case(s) you may not want a remote user to have the same control over the system a local user does. On a shared system for example, remote users should not be installing updates or shutting down the system. On a single user system, you probably do want to allow that.
xrdp is treated as a remote session by polkit. We have no control over that, or the default local policies a particular distro may choose to install.
A wiki page would be great in theory, but not only is it a lot or work to create, but more im…