xrdp opens new sessions for users already having a session running

Bug #1319928 reported by Thomas Schweikle
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xrdp (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

xrdp opens new sessions for users already having a session running.

install xrdp, start xrdp. Then:

1. connect to your xrdp server: mstsc.exe -> enter the servername, then connect or, if you prefer (or not from a windows machine): use freerdp or rdesktop.
2. xrdp-loginscreen is shown. Enter your username and password -- your session is started.
3. Now terminate the connection, leaving the session intact.
4. connect again to the same server.
5. the xrdp loginscreen is shown. Type your username and password. Instead of connection to the already running session xrdp opens a new session.

repeating steps 3 to 5 gives you additional sessions:
14110 ? Sl 0:00 /usr/sbin/xrdp
14112 ? S 0:00 /usr/sbin/xrdp-sesman
23096 ? S 0:00 \_ /usr/sbin/xrdp-sessvc 23098 23097
23097 ? S 0:00 | \_ /bin/bash /home/sct-muc/.xsession
23137 ? Ss 0:00 | | \_ /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/im-launch /bin/bash /hom
23166 ? S 0:00 | | \_ /bin/dash -c /home/sct-muc/.xvmware
23170 ? S 0:00 | | | \_ /bin/bash /home/sct-muc/.xvmware
23317 ? S 0:00 | | | \_ oclock -fg white -transparent -geometry -0+0
23167 ? S 0:00 | | \_ /usr/bin/xterm -geometry 132x43
23263 pts/1 Ss+ 0:00 | | | \_ bash
23169 ? S 0:00 | | \_ /usr/bin/xfwm4
23098 ? S 0:00 | \_ Xvnc :11 -geometry 1280x1024 -depth 24 -rfbauth /home/sct-muc/.vnc/sesman_sct-muc_passwd -bs -ac
23115 ? Sl 0:00 | \_ xrdp-chansrv
23398 ? S 0:00 \_ /usr/sbin/xrdp-sessvc 23400 23399
23399 ? S 0:00 \_ /bin/bash /home/sct-muc/.xsession
23439 ? Ss 0:00 | \_ /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/im-launch /bin/bash /hom
23468 ? S 0:00 | \_ /bin/dash -c /home/sct-muc/.xvmware
23471 ? S 0:00 | | \_ /bin/bash /home/sct-muc/.xvmware
23618 ? S 0:00 | | \_ oclock -fg white -transparent -geometry -0+0
23469 ? S 0:00 | \_ /usr/bin/xterm -geometry 132x43
23550 pts/4 Ss+ 0:00 | | \_ bash
23470 ? S 0:00 | \_ /usr/bin/xfwm4
23400 ? S 0:00 \_ Xvnc :12 -geometry 1280x1024 -depth 24 -rfbauth /home/sct-muc/.vnc/sesman_sct-muc_passwd -bs -ac
23416 ? Sl 0:00 \_ xrdp-chansrv

I'd awaited to be connected to my already running session again, not handled a new session: on connecting to a xrdp server for a given user I'd expect xrdp to look if a session is already running. If: I'd like to be connected to this session. If not a new session shall be created.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: xrdp 0.6.0-1
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.1
Architecture: amd64
Date: Thu May 15 18:18:53 2014
InstallationDate: Installed on 2014-01-31 (104 days ago)
InstallationMedia: Ubuntu-Server 13.10 "Saucy Salamander" - Release amd64 (20131016)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: xrdp
UpgradeStatus: Upgraded to trusty on 2014-01-31 (104 days ago)

Revision history for this message
Thomas Schweikle (tps) wrote :
Revision history for this message
Thomas Schweikle (tps) wrote :

Maybe: if there is a running session for my user-id I'd be prompted to connect to this running session or to create a new one.

Revision history for this message
Thomas Schweikle (tps) wrote :

This was all using 'sesman-Xvnc'.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xrdp (Ubuntu):
status: New → Confirmed
Revision history for this message
Brian Radwanski (radwansk) wrote :

Same here. Similar configuration. Attempting to use this as terminal services for a lab jump host. This is my preferred configuration as its easily used from a windows client but also gives me nix for my unix user quotient. Personally i'm okay with one of two outcomes. Either rdp session disconnect kills the vnc session. OR re-connections from xrdp login window reconnect that user to their existing vnc session based on their shortname. That is available in the process list. The latter scenario is ideal. In the mean time it looks like I'll have to run a cron job to look for sessions past a certain age and kill them.

xrdp 0.6.0-1
ubuntu 14.04LTS
vnc4server 4.1.1+xorg4.3.0-37ubuntu5

Revision history for this message
Brian Radwanski (radwansk) wrote :

FWIW I ran across this potential resolution.

http://c-nergy.be/blog/?p=4168

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.