XRDP login failed for display 0












1















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


















  • 1





    Maybe it is time you accept your own answer...` :-)`

    – Hastur
    Dec 17 '18 at 22:12
















1















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


















  • 1





    Maybe it is time you accept your own answer...` :-)`

    – Hastur
    Dec 17 '18 at 22:12














1












1








1








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









ventsyvventsyv

2171411




2171411








  • 1





    Maybe it is time you accept your own answer...` :-)`

    – Hastur
    Dec 17 '18 at 22:12














  • 1





    Maybe it is time you accept your own answer...` :-)`

    – Hastur
    Dec 17 '18 at 22:12








1




1





Maybe it is time you accept your own answer...` :-)`

– Hastur
Dec 17 '18 at 22:12





Maybe it is time you accept your own answer...` :-)`

– Hastur
Dec 17 '18 at 22:12










1 Answer
1






active

oldest

votes


















1














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',
    autoActivateHeartbeat: false,
    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









    1














    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




























      1














      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


























        1












        1








        1







        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









        ventsyvventsyv

        2171411




        2171411






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            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

            Plaza Victoria

            Brian Clough

            Cáceres