View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0009781 | Kali Linux | Kali Package Bug | public | 2026-07-12 08:28 | 2026-07-16 11:00 |
| Reporter | cohst | Assigned To | arnaudr | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Summary | 0009781: xRDP package fails to start due to missing configuration file (/etc/xrdp/xrdp.ini) — configuration not generated by postinst scr | ||||
| Description | On a fully updated Kali Rolling system, the xrdp package (version 0.10.6.1-2+kali1) fails to start because the configuration file /etc/xrdp/xrdp.ini is not created during installation. The service exits immediately with a log configuration error. This issue is reproducible even when completely purging xRDP and reinstalling. Environment: Kali Rolling (fully updated) xRDP versions tested: 0.10.6.1-2+kali1 0.10.6-1+kali1 STRATO KVM virtual server (Debian 12 → Kali migration) XFCE, LightDM, Xorg all functioning normally No local console available (STRATO limitation), but Xorg and XFCE sessions are healthy Steps to reproduce: sudo apt purge xrdp xorgxrdp Remove /etc/xrdp/ completely Install either version: sudo apt install xrdp or sudo apt install ./xrdp_0.10.6-1+kali1_amd64.deb Start the service: Actual result: Code Code Additional notes: The directory /etc/xrdp/ is created, but the configuration file is not. Manually creating an INI file does not resolve the issue because the package expects a version‑specific configuration layout. Xorg, LightDM, and XFCE are fully functional; the issue is isolated to the xRDP package. This appears to be a regression in the Kali packaging scripts. Request: | ||||
| Attached Files | |||||
|
Update from today (after apt-update && apt full-upgrade): Description Environment Kali Rolling, fully updated. xrdp package: 0.10.6.1-2+kali1 (installed and candidate). Desktop: XFCE 4.20 (reinstalled). Display manager: LightDM. Host: STRATO KVM virtual server (no physical TTY). I have reproduced the issue after purging and reinstalling xrdp and after renaming xrdp.ini.original → xrdp.ini. Reproduction steps sudo apt purge xrdp xorgxrdp Remove /etc/xrdp/ completely. sudo apt install xrdp (version 0.10.6.1-2+kali1) Ensure /etc/xrdp/startwm.sh calls startxfce4 (I have already corrected this). sudo systemctl start xrdp Connect with an RDP client and log in. Observed behavior xrdp service is active and running, but after login the client sees a black screen and then a disconnect. Relevant journalctl/systemd log excerpt: Code xrdp should read /etc/xrdp/xrdp.ini successfully, load dynamic channels (including drdynvc), enable GFX, and start the user session (XFCE) so the client receives the desktop frames instead of a black screen. Additional facts and troubleshooting already performed I renamed the shipped xrdp.ini.original to /etc/xrdp/xrdp.ini to ensure a valid INI is present; xrdp still logs that it cannot read the INI. I verified /etc/xrdp/xrdp.ini contents — it matches the standard INI shipped with xrdp and is unchanged. I corrected /etc/xrdp/startwm.sh so it contains: Code Reinstalled XFCE (xfce4, xfce4-goodies) and restarted xrdp; behavior unchanged. The drdynvc channel is reported missing by xrdp even though drdynvc=true is set in the INI; this indicates the channel module is not available or not loaded by the package. Request Please investigate the current xrdp packaging in Kali Rolling (0.10.6.1-2+kali1). The symptoms indicate multiple regressions: inability to read /etc/xrdp/xrdp.ini at runtime, missing dynamic channel module drdynvc (GFX disabled), and session aborts after login. If this is a packaging regression, please either: (a) revert to the last known working package, or (b) apply a patch that ensures the postinst creates/installs the INI correctly and that the channel modules (including drdynvc) are present and loadable. Please CC or forward this issue to the Debian xrdp maintainers and upstream xrdp if appropriate, as the problem appears to be a regression introduced in recent updates and may require upstream fixes. Attachments available on request Full journalctl -u xrdp output. /etc/xrdp/xrdp.ini (current contents). /etc/xrdp/startwm.sh (current contents). Steps and exact commands used to reproduce. |
|
|
┌──(cohst@kali)-[~] Jul 13 13:17:06 kali xrdp[89653]: [WARN ] Static channel 'drdynvc' not found. ● xrdp-sesman.service - xrdp session manager Jul 13 13:16:36 kali systemd[1]: Starting xrdp-sesman.service - xrdp session manager... ┌──(cohst@kali)-[~] |
|
|
Maybe the issue is caused by purging the xrdp package. The file |
|
|
Unfortunately this does not really help. After reinstalling kali-defaults and restart xrdp service, everything looks fine from ssh view (see systemctl status xrdp), but after try to connect via xRDP the screen remains black but there is another error message when doing systemctl status xrdp: ┌──(cohst@kali-linux)-[~] Get:1 https://eu.mirror.ionos.com/linux/distributions/kali/kali kali-rolling/main amd64 kali-defaults all 2026.3.1 [88.4 kB] Running kernel seems to be up-to-date. No services need to be restarted. No containers need to be restarted. No user sessions are running outdated binaries. No VM guests are running outdated hypervisor (qemu) binaries on this host. ┌──(cohst@kali-linux)-[~] ┌──(cohst@kali-linux)-[~] Jul 14 09:53:25 kali-linux systemd[1]: Starting xrdp.service - xrdp daemon... ┌──(cohst@kali-linux)-[~] Jul 14 09:54:08 kali-linux xrdp[182150]: [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini ┌──(cohst@kali-linux)-[~] |
|
I see that you still get Here's what I get:
With that said, I tried a connection, and it failed for me. Here are my logs:
The error about However the real errors are the last 4 lines of logs. Never seen before. Maybe it was caused by the recent security update (that was uploaded to Kali last week IIRC). |
|
|
The issue was reported and discussed upsteam at https://github.com/neutrinolabs/xrdp/issues/3808. I'm not sure to understand the root cause, either:
The workaround for now is to enable TLS, like this:
Check that all looks good (everything should be in the green):
Also, double-check that, in After those changes, it works for me |
|
|
Unfortunately for me this workaround does not work - I don't know why not. Ich have set set the same permissions as you suggest and restartet all sessions. Here is my configuration: login as: cohst The programs included with the Debian GNU/Linux system are free software; Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent ┌──(cohst@kali-linux)-[~] ┌──(cohst@kali-linux)-[~] ┌──(cohst@kali-linux)-[~] ┌──(cohst@kali-linux)-[~] ┌──(cohst@kali-linux)-[~] ┌──(cohst@kali-linux)-[~]
[ OK ] runtime_user 'xrdp' appears to exist [ OK ] -Summary- Permissions appear to be correct to run xrdp unprivileged ┌──(cohst@kali-linux)-[~] ┌──(cohst@kali-linux)-[~] ┌──(cohst@kali-linux)-[~] Jul 15 16:58:49 kali-linux systemd[1]: Starting xrdp.service - xrdp daemon... ┌──(cohst@kali-linux)-[~] Jul 15 16:59:30 kali-linux xrdp[277740]: [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini ┌──(cohst@kali-linux)-[~] ┌──(cohst@kali-linux)-[~] Jul 15 16:58:49 kali-linux systemd[1]: Starting xrdp-sesman.service - xrdp session manager... ┌──(cohst@kali-linux)-[~] My screen stays black, have no idea why. xfce4 ist correctly installed and runs normal from Hypervisor console, so it's definitely a xrdp problem. I upgraded system again today, so it's definititely the latest version. |
|
|
What strikes me is that my error message differs from yours: the issue for me isn't primarily about encryption, but rather that certain channel modules apparently aren't being loaded in my xrdp: ┌──(cohst@kali-linux)-[~] Jul 14 09:54:08 kali-linux xrdp[182150]: [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini ┌──(cohst@kali-linux)-[~] |
|
|
The permissions on the file
It should be readable by everyone, and that's probably why you have Apparently xrdp-sesman isn't running for you? Maybe try
|
|
|
Also you pasted logs from February so it's getting confusing |
|
|
What's your configuration client-side? What program do you use to initiate the connection, on what Operating System? Maybe you're hitting a different issue that the one I found, after all. |
|
|
Ok, I did more tests. I think |
|
|
Opened https://github.com/neutrinolabs/xrdp/issues/3830 to confirm |
|
|
That was the problem - and your fix solved ist completely! Thank you so much Arnaud! It was the missing permission of 0644. To answer your questions: I uploaded everything I got from journalctl - so maybe the logs were old from February because in the last version xrdp did not write logs on my system?? I don't know. My client for RDP Access ist Devolutions Remote Desktop Manager with FreeRDP. You can close the ticket from my side, the fix worked! |
|
|
Cool! Glad we could sort it out. Recap for those who stumble over this thread, trying to fix their xrdp connection. If the file
If you see this error: Make sure
If you see this error Add xrdp to the ssl-cert group (this is not ideal, it's a quick fix): |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-07-12 08:28 | cohst | New Issue | |
| 2026-07-12 08:28 | cohst | File Added: Capture.JPG | |
| 2026-07-12 08:28 | cohst | File Added: Capture2.JPG | |
| 2026-07-13 11:40 | cohst | Note Added: 0021865 | |
| 2026-07-13 11:43 | cohst | Note Added: 0021866 | |
| 2026-07-13 11:45 | cohst | Note Edited: 0021866 | |
| 2026-07-14 06:45 | arnaudr | Note Added: 0021868 | |
| 2026-07-14 07:58 | cohst | Note Added: 0021869 | |
| 2026-07-15 08:50 | arnaudr | Note Added: 0021874 | |
| 2026-07-15 09:20 | arnaudr | Note Added: 0021875 | |
| 2026-07-15 09:29 | arnaudr | Note Edited: 0021875 | |
| 2026-07-15 15:08 | cohst | Note Added: 0021877 | |
| 2026-07-15 16:10 | cohst | Note Added: 0021878 | |
| 2026-07-16 09:07 | arnaudr | Note Added: 0021884 | |
| 2026-07-16 09:28 | arnaudr | Note Added: 0021885 | |
| 2026-07-16 09:30 | arnaudr | Note Added: 0021886 | |
| 2026-07-16 09:39 | arnaudr | Note Added: 0021887 | |
| 2026-07-16 09:41 | arnaudr | Note Edited: 0021884 | |
| 2026-07-16 09:46 | arnaudr | Note Added: 0021888 | |
| 2026-07-16 10:46 | cohst | Note Added: 0021889 | |
| 2026-07-16 10:59 | arnaudr | Note Added: 0021890 | |
| 2026-07-16 11:00 | arnaudr | Note Edited: 0021890 | |
| 2026-07-16 11:00 | arnaudr | Assigned To | => arnaudr |
| 2026-07-16 11:00 | arnaudr | Status | new => closed |
| 2026-07-16 11:00 | arnaudr | Resolution | open => fixed |