Ubuntu 18.04 on login loop, even with correct password











up vote
3
down vote

favorite












I installed Ubuntu 18.04 yesterday, done some app installation and configurations and went to sleep. This morning, the login simply didn't work: the system is unable to log into my session, even with the correct password. Every time I try it, it flashes the screen into black and purple, the mouse pointer is available, but it flashes back to the login screen again: no error message prompts and I spent quite some time amusing myself trying to win it by attrition =). I also tried switch over to Wayland, and the same result: screen flashes to black, couple of seconds later, I'm back at the login stage.



There is nothing wrong with my password, since I can log into my user account on the Terminal (CTRL+ALT+F1). Once there, I did a sudo apt update/upgrade in the hopes it'd fix something, but my system was up to date and it didn't solve anything after I rebooted.



I've seen a lot of similar reports on the internet and the only solution that it seemed worthwhile to my noobish eyes was removing/deleting the .Xauthority file. But when I tried it, the return I got was that there was no such file on my Home directory. The other solutions applied to people upgrading their systems - mine was a fresh install - or with pretty specific hardware and conditions that don't apply to me.



So, what should I do to fix this?










share|improve this question


















  • 2




    Possible duplicate of Ubuntu gets stuck in a login loop
    – Elder Geek
    Jul 25 at 21:43










  • Did you find a solution for this? I have the same problem and the solution mentioned on the above link does not work for Ubuntu 18.04
    – Sumit
    Sep 25 at 6:37










  • Check again ls -l ~/.Xauthority ls -l ~/.ICEauthority ls -ld ~
    – Hobbyist
    Oct 30 at 15:35

















up vote
3
down vote

favorite












I installed Ubuntu 18.04 yesterday, done some app installation and configurations and went to sleep. This morning, the login simply didn't work: the system is unable to log into my session, even with the correct password. Every time I try it, it flashes the screen into black and purple, the mouse pointer is available, but it flashes back to the login screen again: no error message prompts and I spent quite some time amusing myself trying to win it by attrition =). I also tried switch over to Wayland, and the same result: screen flashes to black, couple of seconds later, I'm back at the login stage.



There is nothing wrong with my password, since I can log into my user account on the Terminal (CTRL+ALT+F1). Once there, I did a sudo apt update/upgrade in the hopes it'd fix something, but my system was up to date and it didn't solve anything after I rebooted.



I've seen a lot of similar reports on the internet and the only solution that it seemed worthwhile to my noobish eyes was removing/deleting the .Xauthority file. But when I tried it, the return I got was that there was no such file on my Home directory. The other solutions applied to people upgrading their systems - mine was a fresh install - or with pretty specific hardware and conditions that don't apply to me.



So, what should I do to fix this?










share|improve this question


















  • 2




    Possible duplicate of Ubuntu gets stuck in a login loop
    – Elder Geek
    Jul 25 at 21:43










  • Did you find a solution for this? I have the same problem and the solution mentioned on the above link does not work for Ubuntu 18.04
    – Sumit
    Sep 25 at 6:37










  • Check again ls -l ~/.Xauthority ls -l ~/.ICEauthority ls -ld ~
    – Hobbyist
    Oct 30 at 15:35















up vote
3
down vote

favorite









up vote
3
down vote

favorite











I installed Ubuntu 18.04 yesterday, done some app installation and configurations and went to sleep. This morning, the login simply didn't work: the system is unable to log into my session, even with the correct password. Every time I try it, it flashes the screen into black and purple, the mouse pointer is available, but it flashes back to the login screen again: no error message prompts and I spent quite some time amusing myself trying to win it by attrition =). I also tried switch over to Wayland, and the same result: screen flashes to black, couple of seconds later, I'm back at the login stage.



There is nothing wrong with my password, since I can log into my user account on the Terminal (CTRL+ALT+F1). Once there, I did a sudo apt update/upgrade in the hopes it'd fix something, but my system was up to date and it didn't solve anything after I rebooted.



I've seen a lot of similar reports on the internet and the only solution that it seemed worthwhile to my noobish eyes was removing/deleting the .Xauthority file. But when I tried it, the return I got was that there was no such file on my Home directory. The other solutions applied to people upgrading their systems - mine was a fresh install - or with pretty specific hardware and conditions that don't apply to me.



So, what should I do to fix this?










share|improve this question













I installed Ubuntu 18.04 yesterday, done some app installation and configurations and went to sleep. This morning, the login simply didn't work: the system is unable to log into my session, even with the correct password. Every time I try it, it flashes the screen into black and purple, the mouse pointer is available, but it flashes back to the login screen again: no error message prompts and I spent quite some time amusing myself trying to win it by attrition =). I also tried switch over to Wayland, and the same result: screen flashes to black, couple of seconds later, I'm back at the login stage.



There is nothing wrong with my password, since I can log into my user account on the Terminal (CTRL+ALT+F1). Once there, I did a sudo apt update/upgrade in the hopes it'd fix something, but my system was up to date and it didn't solve anything after I rebooted.



I've seen a lot of similar reports on the internet and the only solution that it seemed worthwhile to my noobish eyes was removing/deleting the .Xauthority file. But when I tried it, the return I got was that there was no such file on my Home directory. The other solutions applied to people upgrading their systems - mine was a fresh install - or with pretty specific hardware and conditions that don't apply to me.



So, what should I do to fix this?







18.04






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 25 at 18:31









wowbagger

2614




2614








  • 2




    Possible duplicate of Ubuntu gets stuck in a login loop
    – Elder Geek
    Jul 25 at 21:43










  • Did you find a solution for this? I have the same problem and the solution mentioned on the above link does not work for Ubuntu 18.04
    – Sumit
    Sep 25 at 6:37










  • Check again ls -l ~/.Xauthority ls -l ~/.ICEauthority ls -ld ~
    – Hobbyist
    Oct 30 at 15:35
















  • 2




    Possible duplicate of Ubuntu gets stuck in a login loop
    – Elder Geek
    Jul 25 at 21:43










  • Did you find a solution for this? I have the same problem and the solution mentioned on the above link does not work for Ubuntu 18.04
    – Sumit
    Sep 25 at 6:37










  • Check again ls -l ~/.Xauthority ls -l ~/.ICEauthority ls -ld ~
    – Hobbyist
    Oct 30 at 15:35










2




2




Possible duplicate of Ubuntu gets stuck in a login loop
– Elder Geek
Jul 25 at 21:43




Possible duplicate of Ubuntu gets stuck in a login loop
– Elder Geek
Jul 25 at 21:43












Did you find a solution for this? I have the same problem and the solution mentioned on the above link does not work for Ubuntu 18.04
– Sumit
Sep 25 at 6:37




Did you find a solution for this? I have the same problem and the solution mentioned on the above link does not work for Ubuntu 18.04
– Sumit
Sep 25 at 6:37












Check again ls -l ~/.Xauthority ls -l ~/.ICEauthority ls -ld ~
– Hobbyist
Oct 30 at 15:35






Check again ls -l ~/.Xauthority ls -l ~/.ICEauthority ls -ld ~
– Hobbyist
Oct 30 at 15:35












3 Answers
3






active

oldest

votes

















up vote
1
down vote













I had the same problem.

Then I found out that I accidentally changed the ownership of my /home/username directory to root.



So you can go to the terminal by CTRL+ALT+F1, and change the username directory ownership with



sudo chown username:username -R /home/username





share|improve this answer






























    up vote
    1
    down vote



    accepted










    I ended up solving this by disabling secure boot on my notebook. As I understand, my issue was caused by wonky Nvidia drivers.






    share|improve this answer




























      up vote
      0
      down vote













      Experienced the same problem today for the first time since moving on to Beaver. Weirdly immediately post full wizard install.

      Initially I thought it was a Wayland issue but despite attempts to force other compositors the issue remained until I cracked-open a Shell and removed my freshly created user /home folder. Upon the next initialisation of my chosen GDM I was shown the new user config wizard and all has been fine since.






      share|improve this answer








      New contributor




      Rob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.


















        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%2f1059458%2fubuntu-18-04-on-login-loop-even-with-correct-password%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        1
        down vote













        I had the same problem.

        Then I found out that I accidentally changed the ownership of my /home/username directory to root.



        So you can go to the terminal by CTRL+ALT+F1, and change the username directory ownership with



        sudo chown username:username -R /home/username





        share|improve this answer



























          up vote
          1
          down vote













          I had the same problem.

          Then I found out that I accidentally changed the ownership of my /home/username directory to root.



          So you can go to the terminal by CTRL+ALT+F1, and change the username directory ownership with



          sudo chown username:username -R /home/username





          share|improve this answer

























            up vote
            1
            down vote










            up vote
            1
            down vote









            I had the same problem.

            Then I found out that I accidentally changed the ownership of my /home/username directory to root.



            So you can go to the terminal by CTRL+ALT+F1, and change the username directory ownership with



            sudo chown username:username -R /home/username





            share|improve this answer














            I had the same problem.

            Then I found out that I accidentally changed the ownership of my /home/username directory to root.



            So you can go to the terminal by CTRL+ALT+F1, and change the username directory ownership with



            sudo chown username:username -R /home/username






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 27 at 23:40









            zx485

            1,43831114




            1,43831114










            answered Sep 27 at 18:43









            HosseinNedaee

            111




            111
























                up vote
                1
                down vote



                accepted










                I ended up solving this by disabling secure boot on my notebook. As I understand, my issue was caused by wonky Nvidia drivers.






                share|improve this answer

























                  up vote
                  1
                  down vote



                  accepted










                  I ended up solving this by disabling secure boot on my notebook. As I understand, my issue was caused by wonky Nvidia drivers.






                  share|improve this answer























                    up vote
                    1
                    down vote



                    accepted







                    up vote
                    1
                    down vote



                    accepted






                    I ended up solving this by disabling secure boot on my notebook. As I understand, my issue was caused by wonky Nvidia drivers.






                    share|improve this answer












                    I ended up solving this by disabling secure boot on my notebook. As I understand, my issue was caused by wonky Nvidia drivers.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 19 at 21:49









                    wowbagger

                    2614




                    2614






















                        up vote
                        0
                        down vote













                        Experienced the same problem today for the first time since moving on to Beaver. Weirdly immediately post full wizard install.

                        Initially I thought it was a Wayland issue but despite attempts to force other compositors the issue remained until I cracked-open a Shell and removed my freshly created user /home folder. Upon the next initialisation of my chosen GDM I was shown the new user config wizard and all has been fine since.






                        share|improve this answer








                        New contributor




                        Rob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.






















                          up vote
                          0
                          down vote













                          Experienced the same problem today for the first time since moving on to Beaver. Weirdly immediately post full wizard install.

                          Initially I thought it was a Wayland issue but despite attempts to force other compositors the issue remained until I cracked-open a Shell and removed my freshly created user /home folder. Upon the next initialisation of my chosen GDM I was shown the new user config wizard and all has been fine since.






                          share|improve this answer








                          New contributor




                          Rob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.




















                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            Experienced the same problem today for the first time since moving on to Beaver. Weirdly immediately post full wizard install.

                            Initially I thought it was a Wayland issue but despite attempts to force other compositors the issue remained until I cracked-open a Shell and removed my freshly created user /home folder. Upon the next initialisation of my chosen GDM I was shown the new user config wizard and all has been fine since.






                            share|improve this answer








                            New contributor




                            Rob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            Experienced the same problem today for the first time since moving on to Beaver. Weirdly immediately post full wizard install.

                            Initially I thought it was a Wayland issue but despite attempts to force other compositors the issue remained until I cracked-open a Shell and removed my freshly created user /home folder. Upon the next initialisation of my chosen GDM I was shown the new user config wizard and all has been fine since.







                            share|improve this answer








                            New contributor




                            Rob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            share|improve this answer



                            share|improve this answer






                            New contributor




                            Rob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            answered Nov 18 at 19:05









                            Rob

                            1




                            1




                            New contributor




                            Rob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.





                            New contributor





                            Rob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.






                            Rob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.






























                                 

                                draft saved


                                draft discarded



















































                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1059458%2fubuntu-18-04-on-login-loop-even-with-correct-password%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

                                How did Captain America manage to do this?

                                迪纳利

                                南乌拉尔铁路局