Local ubuntu desktop cannot login after opened xrdp session











up vote
0
down vote

favorite












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 to close 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


restart the machine is the only way right now, please help. Thanks in advance.



UPDATE



after some trial and error, and referenced to @Sylla suggestion (thank you), 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?










share|improve this question




























    up vote
    0
    down vote

    favorite












    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 to close 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


    restart the machine is the only way right now, please help. Thanks in advance.



    UPDATE



    after some trial and error, and referenced to @Sylla suggestion (thank you), 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?










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      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 to close 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


      restart the machine is the only way right now, please help. Thanks in advance.



      UPDATE



      after some trial and error, and referenced to @Sylla suggestion (thank you), 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?










      share|improve this question















      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 to close 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


      restart the machine is the only way right now, please help. Thanks in advance.



      UPDATE



      after some trial and error, and referenced to @Sylla suggestion (thank you), 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?







      login remote-desktop xrdp






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 12 at 3:11

























      asked Jul 11 at 3:22









      Asule

      14




      14






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          1) First solution:



          ps -u your_username | grep xrdp



          will give you the process id.



          You can then



          kill -9 pid_number



          pid refers to your xrdp process ID.



          2) Second solution



          If you want to close xrdp session, you can use this command



          /etc/init.d/xrdp stop



          And if you decide to use your xrdp:



          /etc/init.d/xrdp start



          To check which status you have:



          /etc/init.d/xrdp status






          share|improve this answer





















          • i tried your suggestion: but $ 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 at 9:51










          • Not 'sudo xrdp status' but "/etc/init.d/xrdp" status If the status is "active" (running), you have to run this command as root: "/etc/init.d/xrdp stop" without quotes!
            – Sylla
            Jul 11 at 9:56












          • ok, actually i've tried service xrdp restart yesterday, and made me kicked out of xrdp , but still cannot login locally to desktop. just now i tried your suggestion to stop the service, now i cannot login both locally or xrdp. :(
            – Asule
            Jul 11 at 10:16










          • Restart your computer and do ctrl+Alt+F1 for terminal command. And type this command: "/etc/init.d/xrdp start
            – Sylla
            Jul 11 at 12:01












          • well, that is true i should restart the machine, the only one way i could login back locally, no need to start xrdp manually. But here i am looking for the better way. btw thanks for your responses.
            – Asule
            Jul 12 at 1:16


















          up vote
          0
          down vote



          accepted










          i did not know that xrdp has two config file (xrdp.ini & sesman.ini).



          so i created an issue in xrdp repo here
          .
          he told me that the configuration is in sesman.ini. the variable named KillDisconnected do the job. but as i read it, it cannot have less than 60s.



          hope this help someone.
          thank you






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1054063%2flocal-ubuntu-desktop-cannot-login-after-opened-xrdp-session%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            1) First solution:



            ps -u your_username | grep xrdp



            will give you the process id.



            You can then



            kill -9 pid_number



            pid refers to your xrdp process ID.



            2) Second solution



            If you want to close xrdp session, you can use this command



            /etc/init.d/xrdp stop



            And if you decide to use your xrdp:



            /etc/init.d/xrdp start



            To check which status you have:



            /etc/init.d/xrdp status






            share|improve this answer





















            • i tried your suggestion: but $ 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 at 9:51










            • Not 'sudo xrdp status' but "/etc/init.d/xrdp" status If the status is "active" (running), you have to run this command as root: "/etc/init.d/xrdp stop" without quotes!
              – Sylla
              Jul 11 at 9:56












            • ok, actually i've tried service xrdp restart yesterday, and made me kicked out of xrdp , but still cannot login locally to desktop. just now i tried your suggestion to stop the service, now i cannot login both locally or xrdp. :(
              – Asule
              Jul 11 at 10:16










            • Restart your computer and do ctrl+Alt+F1 for terminal command. And type this command: "/etc/init.d/xrdp start
              – Sylla
              Jul 11 at 12:01












            • well, that is true i should restart the machine, the only one way i could login back locally, no need to start xrdp manually. But here i am looking for the better way. btw thanks for your responses.
              – Asule
              Jul 12 at 1:16















            up vote
            0
            down vote













            1) First solution:



            ps -u your_username | grep xrdp



            will give you the process id.



            You can then



            kill -9 pid_number



            pid refers to your xrdp process ID.



            2) Second solution



            If you want to close xrdp session, you can use this command



            /etc/init.d/xrdp stop



            And if you decide to use your xrdp:



            /etc/init.d/xrdp start



            To check which status you have:



            /etc/init.d/xrdp status






            share|improve this answer





















            • i tried your suggestion: but $ 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 at 9:51










            • Not 'sudo xrdp status' but "/etc/init.d/xrdp" status If the status is "active" (running), you have to run this command as root: "/etc/init.d/xrdp stop" without quotes!
              – Sylla
              Jul 11 at 9:56












            • ok, actually i've tried service xrdp restart yesterday, and made me kicked out of xrdp , but still cannot login locally to desktop. just now i tried your suggestion to stop the service, now i cannot login both locally or xrdp. :(
              – Asule
              Jul 11 at 10:16










            • Restart your computer and do ctrl+Alt+F1 for terminal command. And type this command: "/etc/init.d/xrdp start
              – Sylla
              Jul 11 at 12:01












            • well, that is true i should restart the machine, the only one way i could login back locally, no need to start xrdp manually. But here i am looking for the better way. btw thanks for your responses.
              – Asule
              Jul 12 at 1:16













            up vote
            0
            down vote










            up vote
            0
            down vote









            1) First solution:



            ps -u your_username | grep xrdp



            will give you the process id.



            You can then



            kill -9 pid_number



            pid refers to your xrdp process ID.



            2) Second solution



            If you want to close xrdp session, you can use this command



            /etc/init.d/xrdp stop



            And if you decide to use your xrdp:



            /etc/init.d/xrdp start



            To check which status you have:



            /etc/init.d/xrdp status






            share|improve this answer












            1) First solution:



            ps -u your_username | grep xrdp



            will give you the process id.



            You can then



            kill -9 pid_number



            pid refers to your xrdp process ID.



            2) Second solution



            If you want to close xrdp session, you can use this command



            /etc/init.d/xrdp stop



            And if you decide to use your xrdp:



            /etc/init.d/xrdp start



            To check which status you have:



            /etc/init.d/xrdp status







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 11 at 8:49









            Sylla

            11




            11












            • i tried your suggestion: but $ 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 at 9:51










            • Not 'sudo xrdp status' but "/etc/init.d/xrdp" status If the status is "active" (running), you have to run this command as root: "/etc/init.d/xrdp stop" without quotes!
              – Sylla
              Jul 11 at 9:56












            • ok, actually i've tried service xrdp restart yesterday, and made me kicked out of xrdp , but still cannot login locally to desktop. just now i tried your suggestion to stop the service, now i cannot login both locally or xrdp. :(
              – Asule
              Jul 11 at 10:16










            • Restart your computer and do ctrl+Alt+F1 for terminal command. And type this command: "/etc/init.d/xrdp start
              – Sylla
              Jul 11 at 12:01












            • well, that is true i should restart the machine, the only one way i could login back locally, no need to start xrdp manually. But here i am looking for the better way. btw thanks for your responses.
              – Asule
              Jul 12 at 1:16


















            • i tried your suggestion: but $ 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 at 9:51










            • Not 'sudo xrdp status' but "/etc/init.d/xrdp" status If the status is "active" (running), you have to run this command as root: "/etc/init.d/xrdp stop" without quotes!
              – Sylla
              Jul 11 at 9:56












            • ok, actually i've tried service xrdp restart yesterday, and made me kicked out of xrdp , but still cannot login locally to desktop. just now i tried your suggestion to stop the service, now i cannot login both locally or xrdp. :(
              – Asule
              Jul 11 at 10:16










            • Restart your computer and do ctrl+Alt+F1 for terminal command. And type this command: "/etc/init.d/xrdp start
              – Sylla
              Jul 11 at 12:01












            • well, that is true i should restart the machine, the only one way i could login back locally, no need to start xrdp manually. But here i am looking for the better way. btw thanks for your responses.
              – Asule
              Jul 12 at 1:16
















            i tried your suggestion: but $ 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 at 9:51




            i tried your suggestion: but $ 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 at 9:51












            Not 'sudo xrdp status' but "/etc/init.d/xrdp" status If the status is "active" (running), you have to run this command as root: "/etc/init.d/xrdp stop" without quotes!
            – Sylla
            Jul 11 at 9:56






            Not 'sudo xrdp status' but "/etc/init.d/xrdp" status If the status is "active" (running), you have to run this command as root: "/etc/init.d/xrdp stop" without quotes!
            – Sylla
            Jul 11 at 9:56














            ok, actually i've tried service xrdp restart yesterday, and made me kicked out of xrdp , but still cannot login locally to desktop. just now i tried your suggestion to stop the service, now i cannot login both locally or xrdp. :(
            – Asule
            Jul 11 at 10:16




            ok, actually i've tried service xrdp restart yesterday, and made me kicked out of xrdp , but still cannot login locally to desktop. just now i tried your suggestion to stop the service, now i cannot login both locally or xrdp. :(
            – Asule
            Jul 11 at 10:16












            Restart your computer and do ctrl+Alt+F1 for terminal command. And type this command: "/etc/init.d/xrdp start
            – Sylla
            Jul 11 at 12:01






            Restart your computer and do ctrl+Alt+F1 for terminal command. And type this command: "/etc/init.d/xrdp start
            – Sylla
            Jul 11 at 12:01














            well, that is true i should restart the machine, the only one way i could login back locally, no need to start xrdp manually. But here i am looking for the better way. btw thanks for your responses.
            – Asule
            Jul 12 at 1:16




            well, that is true i should restart the machine, the only one way i could login back locally, no need to start xrdp manually. But here i am looking for the better way. btw thanks for your responses.
            – Asule
            Jul 12 at 1:16












            up vote
            0
            down vote



            accepted










            i did not know that xrdp has two config file (xrdp.ini & sesman.ini).



            so i created an issue in xrdp repo here
            .
            he told me that the configuration is in sesman.ini. the variable named KillDisconnected do the job. but as i read it, it cannot have less than 60s.



            hope this help someone.
            thank you






            share|improve this answer

























              up vote
              0
              down vote



              accepted










              i did not know that xrdp has two config file (xrdp.ini & sesman.ini).



              so i created an issue in xrdp repo here
              .
              he told me that the configuration is in sesman.ini. the variable named KillDisconnected do the job. but as i read it, it cannot have less than 60s.



              hope this help someone.
              thank you






              share|improve this answer























                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                i did not know that xrdp has two config file (xrdp.ini & sesman.ini).



                so i created an issue in xrdp repo here
                .
                he told me that the configuration is in sesman.ini. the variable named KillDisconnected do the job. but as i read it, it cannot have less than 60s.



                hope this help someone.
                thank you






                share|improve this answer












                i did not know that xrdp has two config file (xrdp.ini & sesman.ini).



                so i created an issue in xrdp repo here
                .
                he told me that the configuration is in sesman.ini. the variable named KillDisconnected do the job. but as i read it, it cannot have less than 60s.



                hope this help someone.
                thank you







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jul 13 at 10:24









                Asule

                14




                14






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1054063%2flocal-ubuntu-desktop-cannot-login-after-opened-xrdp-session%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

                    ComboBox Display Member on multiple fields

                    Is it possible to collect Nectar points via Trainline?