I have Ubuntu 18.04 and Xrdp 0.9.5. I can login directly to local desktop after boot. If I logout, I still can login via Xrdp.
Otherwise, if Xrdp session has opened, even if I closed it, I cannot login to desktop locally, I think Xrdp session is blocking it. I need to restart the machine so I can login locally.
How do I close the Xrdp session?
When I tried to login locally, the log says :
Jul 10 09:34:55 gdm-password]: pam_unix(gdm-password:session): session opened for user superadmin by (uid=0)
Jul 10 09:34:55 systemd-logind[879]: New session 3 of user superadmin.
Jul 10 09:34:57 gdm-password]: pam_unix(gdm-password:session): session closed for user superadmin
Jul 10 09:34:57 systemd-logind[879]: Removed session 3.
Jul 10 09:35:01 CRON[2485]: pam_unix(cron:session): session opened for user root by (uid=0)
Jul 10 09:35:01 CRON[2485]: pam_unix(cron:session): session closed for user root
Restarting the machine is the only way to fix this right now.
UPDATE
After some trial and error, and referenced to @Sylla suggestion, I found that not only Xrdp process to kill, but also XOrg
7313 ? 00:00:02 Xorg
7325 ? 00:00:00 xrdp-chansrv
After that, I can now login locally.
Now the next question is: Is there any chance I could make it automatically kill the processes after I close remote desktop?
$ sudo xrdp status Unknown Parameter xrdp -h for help
not recognizing status parameter
$ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv $ kill -9 1818 $ ps -u superadmin | grep xrdp 1818 ? 00:00:00 xrdp-chansrv <defunct>
i'm still logged in xrdp, even can reconnect xrdp normally.
any suggestion?
– Asule Jul 11 '18 at 09:51