Ubuntu 16.04 Login Loop Problem












3















I have a problem with ubuntu. When I tried login, I was seeing a black screen and again login screen was coming. I tried some codes but they didn't work. Codes which I tried;



chown username:username .Xauthority
mv .Xauthority .Xauthority.bak
sudo chmod a+wt /tmp
sudo apt-get purge lightdm
sudo apt-get install lightdm
dpkg-reconfigure lightdm


However I creat a new account and it is working. Well, I want to use my main account but I can't work it. Can someone help me? Thanks.










share|improve this question





























    3















    I have a problem with ubuntu. When I tried login, I was seeing a black screen and again login screen was coming. I tried some codes but they didn't work. Codes which I tried;



    chown username:username .Xauthority
    mv .Xauthority .Xauthority.bak
    sudo chmod a+wt /tmp
    sudo apt-get purge lightdm
    sudo apt-get install lightdm
    dpkg-reconfigure lightdm


    However I creat a new account and it is working. Well, I want to use my main account but I can't work it. Can someone help me? Thanks.










    share|improve this question



























      3












      3








      3








      I have a problem with ubuntu. When I tried login, I was seeing a black screen and again login screen was coming. I tried some codes but they didn't work. Codes which I tried;



      chown username:username .Xauthority
      mv .Xauthority .Xauthority.bak
      sudo chmod a+wt /tmp
      sudo apt-get purge lightdm
      sudo apt-get install lightdm
      dpkg-reconfigure lightdm


      However I creat a new account and it is working. Well, I want to use my main account but I can't work it. Can someone help me? Thanks.










      share|improve this question
















      I have a problem with ubuntu. When I tried login, I was seeing a black screen and again login screen was coming. I tried some codes but they didn't work. Codes which I tried;



      chown username:username .Xauthority
      mv .Xauthority .Xauthority.bak
      sudo chmod a+wt /tmp
      sudo apt-get purge lightdm
      sudo apt-get install lightdm
      dpkg-reconfigure lightdm


      However I creat a new account and it is working. Well, I want to use my main account but I can't work it. Can someone help me? Thanks.







      16.04 login lightdm






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 19 '17 at 20:53









      Danibix

      1,42511022




      1,42511022










      asked Mar 19 '17 at 20:12









      sherlocksmsherlocksm

      1613




      1613






















          3 Answers
          3






          active

          oldest

          votes


















          0














          I had a same problem and I solved it. Problem with login loop showed up after irregular shutdown. I have solved the problem as follows:



          I saw that my home folder did not have w attribute.

          I added w attribute and reboot.

          Click Ctrl + Alt + F1 and type in the console



          sudo chmod -R +w ~
          sudo reboot


          Note: ~ home folder, +w add write attribute, -R recursive.

          That's all.






          share|improve this answer

































            0














            For me, for some reason, the owner of my home folder was changed to root. I just changed it back and I was able to login. Thankfully SSH was working for me so that I could make this change.



            sudo chown user:user user






            share|improve this answer































              0














              I had login looping problem after upgrade of my old Thinkpad T-61p with nVidia Quadro FX 570M/PCIe/SSE2 graphics card. Right direction gave me this post, but hasn't helped either. So I start to look inside /var/log/Xorg.0.log and there it was: my card was supported only by nvidia-340 driver. All what was needed was:



              sudo apt install nvidia-340
              sudo reboot


              My learning: read content of /var/log/Xorg.0.log






              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',
                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%2faskubuntu.com%2fquestions%2f894713%2fubuntu-16-04-login-loop-problem%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









                0














                I had a same problem and I solved it. Problem with login loop showed up after irregular shutdown. I have solved the problem as follows:



                I saw that my home folder did not have w attribute.

                I added w attribute and reboot.

                Click Ctrl + Alt + F1 and type in the console



                sudo chmod -R +w ~
                sudo reboot


                Note: ~ home folder, +w add write attribute, -R recursive.

                That's all.






                share|improve this answer






























                  0














                  I had a same problem and I solved it. Problem with login loop showed up after irregular shutdown. I have solved the problem as follows:



                  I saw that my home folder did not have w attribute.

                  I added w attribute and reboot.

                  Click Ctrl + Alt + F1 and type in the console



                  sudo chmod -R +w ~
                  sudo reboot


                  Note: ~ home folder, +w add write attribute, -R recursive.

                  That's all.






                  share|improve this answer




























                    0












                    0








                    0







                    I had a same problem and I solved it. Problem with login loop showed up after irregular shutdown. I have solved the problem as follows:



                    I saw that my home folder did not have w attribute.

                    I added w attribute and reboot.

                    Click Ctrl + Alt + F1 and type in the console



                    sudo chmod -R +w ~
                    sudo reboot


                    Note: ~ home folder, +w add write attribute, -R recursive.

                    That's all.






                    share|improve this answer















                    I had a same problem and I solved it. Problem with login loop showed up after irregular shutdown. I have solved the problem as follows:



                    I saw that my home folder did not have w attribute.

                    I added w attribute and reboot.

                    Click Ctrl + Alt + F1 and type in the console



                    sudo chmod -R +w ~
                    sudo reboot


                    Note: ~ home folder, +w add write attribute, -R recursive.

                    That's all.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited May 16 '17 at 10:47









                    Sumeet Deshmukh

                    4,37152971




                    4,37152971










                    answered May 16 '17 at 9:45









                    mikiamikia

                    1011




                    1011

























                        0














                        For me, for some reason, the owner of my home folder was changed to root. I just changed it back and I was able to login. Thankfully SSH was working for me so that I could make this change.



                        sudo chown user:user user






                        share|improve this answer




























                          0














                          For me, for some reason, the owner of my home folder was changed to root. I just changed it back and I was able to login. Thankfully SSH was working for me so that I could make this change.



                          sudo chown user:user user






                          share|improve this answer


























                            0












                            0








                            0







                            For me, for some reason, the owner of my home folder was changed to root. I just changed it back and I was able to login. Thankfully SSH was working for me so that I could make this change.



                            sudo chown user:user user






                            share|improve this answer













                            For me, for some reason, the owner of my home folder was changed to root. I just changed it back and I was able to login. Thankfully SSH was working for me so that I could make this change.



                            sudo chown user:user user







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jun 25 '18 at 12:15









                            n3on3o

                            12317




                            12317























                                0














                                I had login looping problem after upgrade of my old Thinkpad T-61p with nVidia Quadro FX 570M/PCIe/SSE2 graphics card. Right direction gave me this post, but hasn't helped either. So I start to look inside /var/log/Xorg.0.log and there it was: my card was supported only by nvidia-340 driver. All what was needed was:



                                sudo apt install nvidia-340
                                sudo reboot


                                My learning: read content of /var/log/Xorg.0.log






                                share|improve this answer




























                                  0














                                  I had login looping problem after upgrade of my old Thinkpad T-61p with nVidia Quadro FX 570M/PCIe/SSE2 graphics card. Right direction gave me this post, but hasn't helped either. So I start to look inside /var/log/Xorg.0.log and there it was: my card was supported only by nvidia-340 driver. All what was needed was:



                                  sudo apt install nvidia-340
                                  sudo reboot


                                  My learning: read content of /var/log/Xorg.0.log






                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    I had login looping problem after upgrade of my old Thinkpad T-61p with nVidia Quadro FX 570M/PCIe/SSE2 graphics card. Right direction gave me this post, but hasn't helped either. So I start to look inside /var/log/Xorg.0.log and there it was: my card was supported only by nvidia-340 driver. All what was needed was:



                                    sudo apt install nvidia-340
                                    sudo reboot


                                    My learning: read content of /var/log/Xorg.0.log






                                    share|improve this answer













                                    I had login looping problem after upgrade of my old Thinkpad T-61p with nVidia Quadro FX 570M/PCIe/SSE2 graphics card. Right direction gave me this post, but hasn't helped either. So I start to look inside /var/log/Xorg.0.log and there it was: my card was supported only by nvidia-340 driver. All what was needed was:



                                    sudo apt install nvidia-340
                                    sudo reboot


                                    My learning: read content of /var/log/Xorg.0.log







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jul 21 '18 at 21:26









                                    Josef ŠvendaJosef Švenda

                                    1




                                    1






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Ask Ubuntu!


                                        • 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%2faskubuntu.com%2fquestions%2f894713%2fubuntu-16-04-login-loop-problem%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 to send String Array data to Server using php in android

                                        Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                                        Is anime1.com a legal site for watching anime?