Nux!


Home » Repos » Report a problem or request a package » xrdp fails to start (xrdp fails to start)
icon8.gif  xrdp fails to start [message #3223] Mon, 13 July 2015 19:55 Go to next message
Polyergic
Messages: 1
Registered: July 2015
Junior Member
Added the NUX repo to a fresh install of CentOS 7 so I could install xrdp. Installation seemed to work, but starting the service fails with this in /var/log/messages:
Jul 13 14:50:41 tinman systemd: Starting xrdp session manager...
Jul 13 14:50:41 tinman systemd: Started xrdp session manager.
Jul 13 14:50:41 tinman systemd: Starting xrdp daemon...
Jul 13 14:50:41 tinman systemd: Started xrdp daemon.
Jul 13 14:50:41 tinman systemd: Failed at step EXEC spawning /usr/sbin/xrdp-sesman: Permission denied
Jul 13 14:50:41 tinman systemd: Failed at step EXEC spawning /usr/sbin/xrdp: Permission denied
Jul 13 14:50:41 tinman systemd: xrdp-sesman.service: main process exited, code=exited, status=203/EXEC
Jul 13 14:50:41 tinman systemd: Unit xrdp-sesman.service entered failed state.
Jul 13 14:50:41 tinman systemd: xrdp.service: main process exited, code=exited, status=203/EXEC
Jul 13 14:50:41 tinman systemd: Unit xrdp.service entered failed state.


The systemctl status has a little more information:
xrdp.service - xrdp daemon
   Loaded: loaded (/usr/lib/systemd/system/xrdp.service; disabled)
   Active: failed (Result: exit-code) since Mon 2015-07-13 14:50:41 EDT; 11s ago
  Process: 19974 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS --nodaemon (code=exited, status=203/EXEC)
 Main PID: 19974 (code=exited, status=203/EXEC)

Jul 13 14:50:41 tinman systemd[1]: Started xrdp daemon.
Jul 13 14:50:41 tinman systemd[19974]: Failed at step EXEC spawning /usr/sbin/xrdp: Permission denied
Jul 13 14:50:41 tinman systemd[1]: xrdp.service: main process exited, code=exited, status=203/EXEC
Jul 13 14:50:41 tinman systemd[1]: Unit xrdp.service entered failed state.


Both /usr/sbin/xrdp-sesman and /usr/sbin/xrdp are world-executable and both have Context: system_u:object_r:unconfined_exec_t:s0

How do I get xrdp to run?
Re: xrdp fails to start [message #3224 is a reply to message #3223] Tue, 14 July 2015 13:50 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

`setenforce 0` is one way of doing it. Selinux is hardly my strong point, no idea how to work around it in a more elegant way.
Re: xrdp fails to start [message #3226 is a reply to message #3223] Wed, 15 July 2015 17:06 Go to previous message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Can you try this?
chcon --type=bin_t /usr/sbin/xrdp
chcon --type=bin_t /usr/sbin/xrdp-sesman



Found it on http://www.itzgeek.com/how-tos/linux/centos-how-tos/install- xrdp-on-centos-7-rhel-7.html
Previous Topic: PyQt4 with python3 ?
Next Topic: pdfsam
Goto Forum:
  


Current Time: Wed Jul 17 00:19:52 BST 2019

Total time taken to generate the page: 0.01056 seconds