View Issue Details

IDProjectCategoryView StatusLast Update
0008904Kali LinuxGeneral Bugpublic2024-09-10 17:37
Reporterecarrow Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
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

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-09-10 17:37 ecarrow New Issue