Bug 1911807 - Default path to Xorg is incorrect in /etc/xrdp/sesman.ini
Summary: Default path to Xorg is incorrect in /etc/xrdp/sesman.ini
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: xrdp
Version: epel8
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
Assignee: Itamar Reis Peixoto
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-31 12:31 UTC by matt335672
Modified: 2021-01-18 01:49 UTC (History)
3 users (show)

Fixed In Version: xrdp-0.9.15-3.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-18 01:49:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description matt335672 2020-12-31 12:31:35 UTC
Description of problem:

Enabling the Xorg backend is more difficult than it needs to be.

This version of xrdp ships with the Xorg backend stanza commented out in /etc/xrdp/xrdp.ini.

The user enables the Xorg backend by :-

- uncommenting the stanza
- installing xorgxrdp.
- (on EL8) editing /etc/xrdp/sesman.ini and changing this line:-

param=Xorg

to:-

param=/usr/libexec/Xorg

This last of these is not an obvious step.

If the last step is not done, the executable /usr/bin/Xorg is executed instead, which chains to /usr/libexec/Xorg.wrap. By default this fails, as the user is not running on the console.

Some xrdp users are addressing this by creating /etc/X11/Xwrapper.config and setting 'allowed_users=anybody', which is lowering the overall security of their systems. See for example https://github.com/neutrinolabs/xrdp/issues/1772


This is a request to update the xrdp RPM to incorporate the sesman.ini change, so as not to confuse new users more than necessary.

This can be done by appending these lines to xrdp-0.9.9-sesman.patch:-

------
@@ -94,7 +94,7 @@
 ; CentOS 7              :  param=/usr/bin/Xorg or param=Xorg
 ; CentOS 8              :  param=/usr/libexec/Xorg
 ;
-param=Xorg
+param=/usr/libexec/Xorg
 ; Leave the rest paramaters as-is unless you understand what will happen.
 param=-config
 param=xrdp/xorg.conf
------

Version-Release number of selected component (if applicable): 0.9.14-3


How reproducible:


Steps to Reproduce:
1. Install xrdp, xrdp-selinux, xorgxrdp RPMs
2. Uncomment the [Xorg] stanza in /etc/srdp/xrdp.ini
3. Start the xrdp and xrdp-sesman services
4. Attempt to connect to the machine remotely

Actual results:
Blue screen, and no connection

Expected results:
Session starts

Additional info:
I'm one of the maintainers of the XRDP project. Implementing this change will reduce the footfall on our github issues page.

Comment 1 matt335672 2020-12-31 12:50:14 UTC
Sorry - link to confused user above should be https://github.com/neutrinolabs/xrdp/issues/1750#issuecomment-752178782

Comment 2 Bojan Smojver 2020-12-31 12:56:37 UTC
When the recommendation was made to add the wrapper config file and when I patched xrdp to work with selinux on Fedora, the above did not work. I'll revisit when I get some time.

Comment 3 Fedora Update System 2021-01-01 02:07:33 UTC
FEDORA-EPEL-2020-4f7288b113 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-4f7288b113

Comment 4 Fedora Update System 2021-01-02 01:17:07 UTC
FEDORA-EPEL-2020-4f7288b113 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-4f7288b113

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-01-02 02:00:55 UTC
FEDORA-EPEL-2020-4f7288b113 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-4f7288b113

Comment 6 Fedora Update System 2021-01-03 01:47:30 UTC
FEDORA-EPEL-2020-4f7288b113 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-4f7288b113

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-01-18 01:49:43 UTC
FEDORA-EPEL-2020-4f7288b113 has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.