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: 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: Removed session 3. Jul 10 09:35:01 CRON: pam_unix(cron:session): session opened for user root by (uid=0) Jul 10 09:35:01 CRON: pam_unix(cron:session): session closed for user root
Restarting the machine is the only way to fix this right now.
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?