Ubuntu 14.04 Login Loop from running startx in root











up vote
3
down vote

favorite
1












I made a really big mistake and no other articles seem to be fixing this. I was trying to fix my new Ubuntu laptop that I bought because it has the username defualt (spelled wrong) and I didn't like the terminal showing defualt@defualtHP. I think I was able to change it to rootMLR@MLR. I did this from pressing Ctrl+Alt+F1 and using commands I looked up. Then I stupidly entered "startx". Now I can't log in as rootMLR.



So far I have tried:





  1. chown rootMLR:defualt .Xauthority
    The output for ls -lah is now:



     -rw------- 1 rootMLR defualt 0 Nov  00:46 .Xauthority


    If i try chown rootMLR:rootMLR .Xauthority it says invalid group.



    How can I tell what I should put in the chown command?



    But when I reboot, I still am stuck in a log in loop.



    After the reboot when I try chown rootMLR:defualt .Xauthority it says cannot access '.Xauthority' No such file or directory.



  2. I tried deleting it with rm /home/rootMLR/.Xauthority and then rebooting but it doesn't work.



This is all because I stupidly did startx from the Ctrl+Alt+F1 windows.



I'm not attached to this at all yet; is there a way to restore factory defaults or even delete a user all together or something? Or restore the entire operating system to default? I don't have a boot disk or anything for this unfortunately. I can't believe it was working fine and I messed it up; this is very frustrating.



Any help would be immensely appreciated. I need this PC for a project for work and I spent a lot of money on it. I am a super-noob, I need command-by-command instructions if possible. I use Red Hat at work and I really want to start using Linux at home but now I'm very worried that I will not be able to fix this.










share|improve this question
























  • It's 14.04 version 32 bit. If there's any other information that can help me get an answer, I'll provide it. I've been up for hours trying to fix this.
    – Mike_lr
    Nov 18 '14 at 6:16










  • It is very difficult to help without knowing what you did to "fix the name" exactly (and BTW that was not quite right because you have not changed the group. What about creating another administrative user from command line, see askubuntu.com/questions/70236/… and then deleting the users with the mess and then starting anew? See also askubuntu.com/questions/7477/…
    – Rmano
    Nov 18 '14 at 8:53












  • What group do you see when you login as rootMLR in Ctrl+Alt+F1 and type id ?
    – Abey
    Nov 18 '14 at 10:48















up vote
3
down vote

favorite
1












I made a really big mistake and no other articles seem to be fixing this. I was trying to fix my new Ubuntu laptop that I bought because it has the username defualt (spelled wrong) and I didn't like the terminal showing defualt@defualtHP. I think I was able to change it to rootMLR@MLR. I did this from pressing Ctrl+Alt+F1 and using commands I looked up. Then I stupidly entered "startx". Now I can't log in as rootMLR.



So far I have tried:





  1. chown rootMLR:defualt .Xauthority
    The output for ls -lah is now:



     -rw------- 1 rootMLR defualt 0 Nov  00:46 .Xauthority


    If i try chown rootMLR:rootMLR .Xauthority it says invalid group.



    How can I tell what I should put in the chown command?



    But when I reboot, I still am stuck in a log in loop.



    After the reboot when I try chown rootMLR:defualt .Xauthority it says cannot access '.Xauthority' No such file or directory.



  2. I tried deleting it with rm /home/rootMLR/.Xauthority and then rebooting but it doesn't work.



This is all because I stupidly did startx from the Ctrl+Alt+F1 windows.



I'm not attached to this at all yet; is there a way to restore factory defaults or even delete a user all together or something? Or restore the entire operating system to default? I don't have a boot disk or anything for this unfortunately. I can't believe it was working fine and I messed it up; this is very frustrating.



Any help would be immensely appreciated. I need this PC for a project for work and I spent a lot of money on it. I am a super-noob, I need command-by-command instructions if possible. I use Red Hat at work and I really want to start using Linux at home but now I'm very worried that I will not be able to fix this.










share|improve this question
























  • It's 14.04 version 32 bit. If there's any other information that can help me get an answer, I'll provide it. I've been up for hours trying to fix this.
    – Mike_lr
    Nov 18 '14 at 6:16










  • It is very difficult to help without knowing what you did to "fix the name" exactly (and BTW that was not quite right because you have not changed the group. What about creating another administrative user from command line, see askubuntu.com/questions/70236/… and then deleting the users with the mess and then starting anew? See also askubuntu.com/questions/7477/…
    – Rmano
    Nov 18 '14 at 8:53












  • What group do you see when you login as rootMLR in Ctrl+Alt+F1 and type id ?
    – Abey
    Nov 18 '14 at 10:48













up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





I made a really big mistake and no other articles seem to be fixing this. I was trying to fix my new Ubuntu laptop that I bought because it has the username defualt (spelled wrong) and I didn't like the terminal showing defualt@defualtHP. I think I was able to change it to rootMLR@MLR. I did this from pressing Ctrl+Alt+F1 and using commands I looked up. Then I stupidly entered "startx". Now I can't log in as rootMLR.



So far I have tried:





  1. chown rootMLR:defualt .Xauthority
    The output for ls -lah is now:



     -rw------- 1 rootMLR defualt 0 Nov  00:46 .Xauthority


    If i try chown rootMLR:rootMLR .Xauthority it says invalid group.



    How can I tell what I should put in the chown command?



    But when I reboot, I still am stuck in a log in loop.



    After the reboot when I try chown rootMLR:defualt .Xauthority it says cannot access '.Xauthority' No such file or directory.



  2. I tried deleting it with rm /home/rootMLR/.Xauthority and then rebooting but it doesn't work.



This is all because I stupidly did startx from the Ctrl+Alt+F1 windows.



I'm not attached to this at all yet; is there a way to restore factory defaults or even delete a user all together or something? Or restore the entire operating system to default? I don't have a boot disk or anything for this unfortunately. I can't believe it was working fine and I messed it up; this is very frustrating.



Any help would be immensely appreciated. I need this PC for a project for work and I spent a lot of money on it. I am a super-noob, I need command-by-command instructions if possible. I use Red Hat at work and I really want to start using Linux at home but now I'm very worried that I will not be able to fix this.










share|improve this question















I made a really big mistake and no other articles seem to be fixing this. I was trying to fix my new Ubuntu laptop that I bought because it has the username defualt (spelled wrong) and I didn't like the terminal showing defualt@defualtHP. I think I was able to change it to rootMLR@MLR. I did this from pressing Ctrl+Alt+F1 and using commands I looked up. Then I stupidly entered "startx". Now I can't log in as rootMLR.



So far I have tried:





  1. chown rootMLR:defualt .Xauthority
    The output for ls -lah is now:



     -rw------- 1 rootMLR defualt 0 Nov  00:46 .Xauthority


    If i try chown rootMLR:rootMLR .Xauthority it says invalid group.



    How can I tell what I should put in the chown command?



    But when I reboot, I still am stuck in a log in loop.



    After the reboot when I try chown rootMLR:defualt .Xauthority it says cannot access '.Xauthority' No such file or directory.



  2. I tried deleting it with rm /home/rootMLR/.Xauthority and then rebooting but it doesn't work.



This is all because I stupidly did startx from the Ctrl+Alt+F1 windows.



I'm not attached to this at all yet; is there a way to restore factory defaults or even delete a user all together or something? Or restore the entire operating system to default? I don't have a boot disk or anything for this unfortunately. I can't believe it was working fine and I messed it up; this is very frustrating.



Any help would be immensely appreciated. I need this PC for a project for work and I spent a lot of money on it. I am a super-noob, I need command-by-command instructions if possible. I use Red Hat at work and I really want to start using Linux at home but now I'm very worried that I will not be able to fix this.







command-line login chown






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 18 '14 at 8:50









Rmano

25.1k876144




25.1k876144










asked Nov 18 '14 at 6:00









Mike_lr

1613




1613












  • It's 14.04 version 32 bit. If there's any other information that can help me get an answer, I'll provide it. I've been up for hours trying to fix this.
    – Mike_lr
    Nov 18 '14 at 6:16










  • It is very difficult to help without knowing what you did to "fix the name" exactly (and BTW that was not quite right because you have not changed the group. What about creating another administrative user from command line, see askubuntu.com/questions/70236/… and then deleting the users with the mess and then starting anew? See also askubuntu.com/questions/7477/…
    – Rmano
    Nov 18 '14 at 8:53












  • What group do you see when you login as rootMLR in Ctrl+Alt+F1 and type id ?
    – Abey
    Nov 18 '14 at 10:48


















  • It's 14.04 version 32 bit. If there's any other information that can help me get an answer, I'll provide it. I've been up for hours trying to fix this.
    – Mike_lr
    Nov 18 '14 at 6:16










  • It is very difficult to help without knowing what you did to "fix the name" exactly (and BTW that was not quite right because you have not changed the group. What about creating another administrative user from command line, see askubuntu.com/questions/70236/… and then deleting the users with the mess and then starting anew? See also askubuntu.com/questions/7477/…
    – Rmano
    Nov 18 '14 at 8:53












  • What group do you see when you login as rootMLR in Ctrl+Alt+F1 and type id ?
    – Abey
    Nov 18 '14 at 10:48
















It's 14.04 version 32 bit. If there's any other information that can help me get an answer, I'll provide it. I've been up for hours trying to fix this.
– Mike_lr
Nov 18 '14 at 6:16




It's 14.04 version 32 bit. If there's any other information that can help me get an answer, I'll provide it. I've been up for hours trying to fix this.
– Mike_lr
Nov 18 '14 at 6:16












It is very difficult to help without knowing what you did to "fix the name" exactly (and BTW that was not quite right because you have not changed the group. What about creating another administrative user from command line, see askubuntu.com/questions/70236/… and then deleting the users with the mess and then starting anew? See also askubuntu.com/questions/7477/…
– Rmano
Nov 18 '14 at 8:53






It is very difficult to help without knowing what you did to "fix the name" exactly (and BTW that was not quite right because you have not changed the group. What about creating another administrative user from command line, see askubuntu.com/questions/70236/… and then deleting the users with the mess and then starting anew? See also askubuntu.com/questions/7477/…
– Rmano
Nov 18 '14 at 8:53














What group do you see when you login as rootMLR in Ctrl+Alt+F1 and type id ?
– Abey
Nov 18 '14 at 10:48




What group do you see when you login as rootMLR in Ctrl+Alt+F1 and type id ?
– Abey
Nov 18 '14 at 10:48










2 Answers
2






active

oldest

votes

















up vote
0
down vote













You could maybe enter this from dropshell:



 linux64
grub-install
update-grub
update-grub2
efibootmgr


and then from tty enter this:



 sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop


and then enter in tty:



 sudo apt-get upgrade
reboot


and it might work fine this way.






share|improve this answer




























    up vote
    0
    down vote













    Just been though all this after splitting my system between an SSD and HDD for my user data and couldn't get back in from the desktop.



    The problem occurs because when you copy, generally you use root and thus it becomes the owner, which results in your login not being accepted in silence (rather than it beeping which is the case if the login name is wrong).All your settings are no longer available to the desktop through ownership conflicts



    I fixed it as follows : Check with ls -l /home/username




    1. sudo su to drop to root


    2. cd /home


    3. chown -R username:username username


    4. chmod -R 755


    5. mount -a or reboot







    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%2f550896%2fubuntu-14-04-login-loop-from-running-startx-in-root%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













      You could maybe enter this from dropshell:



       linux64
      grub-install
      update-grub
      update-grub2
      efibootmgr


      and then from tty enter this:



       sudo apt-get update
      sudo apt-get install --reinstall ubuntu-desktop


      and then enter in tty:



       sudo apt-get upgrade
      reboot


      and it might work fine this way.






      share|improve this answer

























        up vote
        0
        down vote













        You could maybe enter this from dropshell:



         linux64
        grub-install
        update-grub
        update-grub2
        efibootmgr


        and then from tty enter this:



         sudo apt-get update
        sudo apt-get install --reinstall ubuntu-desktop


        and then enter in tty:



         sudo apt-get upgrade
        reboot


        and it might work fine this way.






        share|improve this answer























          up vote
          0
          down vote










          up vote
          0
          down vote









          You could maybe enter this from dropshell:



           linux64
          grub-install
          update-grub
          update-grub2
          efibootmgr


          and then from tty enter this:



           sudo apt-get update
          sudo apt-get install --reinstall ubuntu-desktop


          and then enter in tty:



           sudo apt-get upgrade
          reboot


          and it might work fine this way.






          share|improve this answer












          You could maybe enter this from dropshell:



           linux64
          grub-install
          update-grub
          update-grub2
          efibootmgr


          and then from tty enter this:



           sudo apt-get update
          sudo apt-get install --reinstall ubuntu-desktop


          and then enter in tty:



           sudo apt-get upgrade
          reboot


          and it might work fine this way.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 18 '14 at 17:45









          Michael

          98831222




          98831222
























              up vote
              0
              down vote













              Just been though all this after splitting my system between an SSD and HDD for my user data and couldn't get back in from the desktop.



              The problem occurs because when you copy, generally you use root and thus it becomes the owner, which results in your login not being accepted in silence (rather than it beeping which is the case if the login name is wrong).All your settings are no longer available to the desktop through ownership conflicts



              I fixed it as follows : Check with ls -l /home/username




              1. sudo su to drop to root


              2. cd /home


              3. chown -R username:username username


              4. chmod -R 755


              5. mount -a or reboot







              share|improve this answer

























                up vote
                0
                down vote













                Just been though all this after splitting my system between an SSD and HDD for my user data and couldn't get back in from the desktop.



                The problem occurs because when you copy, generally you use root and thus it becomes the owner, which results in your login not being accepted in silence (rather than it beeping which is the case if the login name is wrong).All your settings are no longer available to the desktop through ownership conflicts



                I fixed it as follows : Check with ls -l /home/username




                1. sudo su to drop to root


                2. cd /home


                3. chown -R username:username username


                4. chmod -R 755


                5. mount -a or reboot







                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Just been though all this after splitting my system between an SSD and HDD for my user data and couldn't get back in from the desktop.



                  The problem occurs because when you copy, generally you use root and thus it becomes the owner, which results in your login not being accepted in silence (rather than it beeping which is the case if the login name is wrong).All your settings are no longer available to the desktop through ownership conflicts



                  I fixed it as follows : Check with ls -l /home/username




                  1. sudo su to drop to root


                  2. cd /home


                  3. chown -R username:username username


                  4. chmod -R 755


                  5. mount -a or reboot







                  share|improve this answer












                  Just been though all this after splitting my system between an SSD and HDD for my user data and couldn't get back in from the desktop.



                  The problem occurs because when you copy, generally you use root and thus it becomes the owner, which results in your login not being accepted in silence (rather than it beeping which is the case if the login name is wrong).All your settings are no longer available to the desktop through ownership conflicts



                  I fixed it as follows : Check with ls -l /home/username




                  1. sudo su to drop to root


                  2. cd /home


                  3. chown -R username:username username


                  4. chmod -R 755


                  5. mount -a or reboot








                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 19 '14 at 16:38









                  David Walker

                  120111




                  120111






























                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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%2f550896%2fubuntu-14-04-login-loop-from-running-startx-in-root%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

                      flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                      Mangá

                       ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕