XRDP login failed for display 0











up vote
1
down vote

favorite












I created a new user, set the password but not able to login via XRDP. The user/password are set correctly because I can ssh into the machine.



The error I'm getting is the same as in this question: xrdp session: Login failed for display 0



I checked /etc/xrdp/sesman.ini and everything looks OK.



TerminalServerUsers=tsusers
TerminalServerAdmins=tsadmins
; When AlwaysGroupCheck=false access will be permitted
; if the group TerminalServerUsers is not defined.
AlwaysGroupCheck=false


I'm able to log in OK using my regular username & password so I'm guessing the AlwaysGroupCheck option works. For good measure I created the tsusers & tsadmins groups and add the new user to them, then restarted the xrdp service but still not able to login.



Host is Windows7, target is Ubuntu 14.04.










share|improve this question


























    up vote
    1
    down vote

    favorite












    I created a new user, set the password but not able to login via XRDP. The user/password are set correctly because I can ssh into the machine.



    The error I'm getting is the same as in this question: xrdp session: Login failed for display 0



    I checked /etc/xrdp/sesman.ini and everything looks OK.



    TerminalServerUsers=tsusers
    TerminalServerAdmins=tsadmins
    ; When AlwaysGroupCheck=false access will be permitted
    ; if the group TerminalServerUsers is not defined.
    AlwaysGroupCheck=false


    I'm able to log in OK using my regular username & password so I'm guessing the AlwaysGroupCheck option works. For good measure I created the tsusers & tsadmins groups and add the new user to them, then restarted the xrdp service but still not able to login.



    Host is Windows7, target is Ubuntu 14.04.










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I created a new user, set the password but not able to login via XRDP. The user/password are set correctly because I can ssh into the machine.



      The error I'm getting is the same as in this question: xrdp session: Login failed for display 0



      I checked /etc/xrdp/sesman.ini and everything looks OK.



      TerminalServerUsers=tsusers
      TerminalServerAdmins=tsadmins
      ; When AlwaysGroupCheck=false access will be permitted
      ; if the group TerminalServerUsers is not defined.
      AlwaysGroupCheck=false


      I'm able to log in OK using my regular username & password so I'm guessing the AlwaysGroupCheck option works. For good measure I created the tsusers & tsadmins groups and add the new user to them, then restarted the xrdp service but still not able to login.



      Host is Windows7, target is Ubuntu 14.04.










      share|improve this question













      I created a new user, set the password but not able to login via XRDP. The user/password are set correctly because I can ssh into the machine.



      The error I'm getting is the same as in this question: xrdp session: Login failed for display 0



      I checked /etc/xrdp/sesman.ini and everything looks OK.



      TerminalServerUsers=tsusers
      TerminalServerAdmins=tsadmins
      ; When AlwaysGroupCheck=false access will be permitted
      ; if the group TerminalServerUsers is not defined.
      AlwaysGroupCheck=false


      I'm able to log in OK using my regular username & password so I'm guessing the AlwaysGroupCheck option works. For good measure I created the tsusers & tsadmins groups and add the new user to them, then restarted the xrdp service but still not able to login.



      Host is Windows7, target is Ubuntu 14.04.







      ubuntu






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 5 '17 at 18:47









      ventsyv

      207411




      207411






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I restarted the machine and I noticed that I'm no longer getting the xrdp session: Login failed for display 0 error. I suspect that creating the tsusers group and adding the new user to it, then restarting the xrdp service might've work but I probably did not notice because there was an additional problem with the window manager.



          This should work:



          #create the user
          sudo adduser --home /home/<username>/ <username>
          #create the groups
          sudo addgroup tsusers
          sudo addgroup tsadmins
          #Add the new user to the xrdp group
          sudo adduser <username> tsusers
          #Restart the service
          sudo service xrdp restart





          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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%2fsuperuser.com%2fquestions%2f1256618%2fxrdp-login-failed-for-display-0%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            I restarted the machine and I noticed that I'm no longer getting the xrdp session: Login failed for display 0 error. I suspect that creating the tsusers group and adding the new user to it, then restarting the xrdp service might've work but I probably did not notice because there was an additional problem with the window manager.



            This should work:



            #create the user
            sudo adduser --home /home/<username>/ <username>
            #create the groups
            sudo addgroup tsusers
            sudo addgroup tsadmins
            #Add the new user to the xrdp group
            sudo adduser <username> tsusers
            #Restart the service
            sudo service xrdp restart





            share|improve this answer

























              up vote
              0
              down vote













              I restarted the machine and I noticed that I'm no longer getting the xrdp session: Login failed for display 0 error. I suspect that creating the tsusers group and adding the new user to it, then restarting the xrdp service might've work but I probably did not notice because there was an additional problem with the window manager.



              This should work:



              #create the user
              sudo adduser --home /home/<username>/ <username>
              #create the groups
              sudo addgroup tsusers
              sudo addgroup tsadmins
              #Add the new user to the xrdp group
              sudo adduser <username> tsusers
              #Restart the service
              sudo service xrdp restart





              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                I restarted the machine and I noticed that I'm no longer getting the xrdp session: Login failed for display 0 error. I suspect that creating the tsusers group and adding the new user to it, then restarting the xrdp service might've work but I probably did not notice because there was an additional problem with the window manager.



                This should work:



                #create the user
                sudo adduser --home /home/<username>/ <username>
                #create the groups
                sudo addgroup tsusers
                sudo addgroup tsadmins
                #Add the new user to the xrdp group
                sudo adduser <username> tsusers
                #Restart the service
                sudo service xrdp restart





                share|improve this answer












                I restarted the machine and I noticed that I'm no longer getting the xrdp session: Login failed for display 0 error. I suspect that creating the tsusers group and adding the new user to it, then restarting the xrdp service might've work but I probably did not notice because there was an additional problem with the window manager.



                This should work:



                #create the user
                sudo adduser --home /home/<username>/ <username>
                #create the groups
                sudo addgroup tsusers
                sudo addgroup tsadmins
                #Add the new user to the xrdp group
                sudo adduser <username> tsusers
                #Restart the service
                sudo service xrdp restart






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 6 '17 at 15:09









                ventsyv

                207411




                207411






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1256618%2fxrdp-login-failed-for-display-0%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

                    Список кардиналов, возведённых папой римским Каликстом III

                    Deduzione

                    Mysql.sock missing - “Can't connect to local MySQL server through socket”