View Issue Details

IDProjectCategoryView StatusLast Update
0008904Kali LinuxGeneral Bugpublic2025-03-20 13:02
Reporterecarrow Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionopen 
Summary0008904: XRDP failure to authenticate user connections and establish a remote GUI session
Description

When attempting to connect to the server XRDP fails to authenticate the user and establish a remote session connection. Error message from the XRDP app "connecting to sesman on 127.0.0.1:3350" "sesman connect ok" "sending login info to session manager. Please wait..." "Login failed for user <user name>"
Can ssh to the box without issue using any user
Have uninstalled and reinstalled XRDP and dependent packages. Have configured user access rights and permissions.


apt autoremove -y && apt clean -y && apt update && apt upgrade --fix-missing -y && apt dist-upgrade -y
apt install xrdp x11vnc tigervnc-common tigervnc-scraping-server tigervnc-standalone-server tigervnc-viewer tigervnc-xorg-extension xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils remmina -y
nano /etc/xrdp/xrdp.ini # ensure port=49974 or what you deem appropriate, default is 3389 or 3390
dpkg -l xorgxrdp

nano /etc/X11/Xwrapper.config # edit and add the following lines at the end
allowed_users=anybody
needs_root_rights=no

nano /etc/xrdp/sesman.ini # parameters used to start Xorg and Xvnc display servers

usermod -a -G ssl-cert user1
usermod -a -G ssl-cert user2
usermod -a -G ssl-cert user3
usermod -a -G ssl-cert remote
adduser xrdp ssl-cert
systemctl status xrdp
systemctl enable xrdp
echo xfce4-session > /etc/.xsession
service xrdp start
service xrdp-sesman start
update-rc.d xrdp enable

-- Modified Firewall
ufw allow from 0.0.0.0 to any port 3389 # [specify a network]
ufw allow 3389

-- Tried running what Kali site published
#!/bin/bash
echo "[i] Updating and upgrading Kali (this will take a while)"
apt-get update
apt-get --yes full-upgrade

echo "[i] Installing Xfce4 & xrdp (this will take a while as well)"
apt-get --yes install kali-desktop-xfce xorg xrdp

echo "[i] Configuring xrdp to listen to port 3390 (but not starting the service)"
sed -i 's/port=3389/port=3390/g' /etc/xrdp/xrdp.ini

-- Edited the startwm.sh file
sudo nano /etc/xrdp/startwm.sh

#!/bin/sh

xrdp X session start script (c) 2015, 2017, 2021 mirabilos

published under The MirOS Licence

Rely on /etc/pam.d/xrdp-sesman using pam_env to load both

/etc/environment and /etc/default/locale to initialise the

locale and the user environment properly.

if test -r /etc/profile; then
. /etc/profile
fi

if test -r ~/.profile; then
. ~/.profile
fi

test -x /etc/X11/Xsession && exec /etc/X11/Xsession

exec /bin/sh /etc/X11/Xsession

Line added

startxfce4

Activities

g0tmi1k

g0tmi1k

2025-03-20 13:02

administrator   ~0020359

This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity.

Please could you see if you are able to replicate this issue with the latest version of Kali Linux (https://www.kali.org/get-kali/)?

If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing, and also give information about your setup?
For more information, please read: https://www.kali.org/docs/community/submitting-issues-kali-bug-tracker/

Issue History

Date Modified Username Field Change
2024-09-10 17:37 ecarrow New Issue
2025-03-20 13:02 g0tmi1k Note Added: 0020359
2025-03-20 13:02 g0tmi1k Status new => closed