Announcement

Collapse
No announcement yet.

Ubuntu 17.04 stuck on login loop

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ubuntu 17.04 stuck on login loop

    I canít login to Ubuntu-Gnome. When I go to tty1 and type the following:

    chown username:luca .Xauthority

    But it says that the user doesn't exist.

    What can be the problem? How can I log back into Ubuntu-Gnome?

  • #2
    rm .Xauthority and allow it to get reconstructed

    Comment


    • #3
      The command is

      sudo chown luca:luca .Xauthority
      1stluca is the user and 2nd is the group luca

      Comment


      • #4
        But, you will require sudo if it's not yours as of now and BTW the second luca is unnecessary as simply including the colon after the first changes the group as well.


        Comment


        • #5
          Luca

          Also CTRL+ALT+F7

          Comment


          • #6
            If you donít know what username and group you have to use, I recommend using something like this:

            sudo chown $USER:'id -gn' .Xauthority

            $USER would be extended into your existing username.
            id -gn will print the main group of your current user.

            Comment


            • #7
              Originally posted by Gabrel View Post
              But, you will require sudo if it's not yours as of now and BTW the second luca is unnecessary as simply including the colon after the first changes the group as well.

              to complete this press ALT+-> a few times (for my situation it's 5 tty's so 5 times) until you get into the Ubuntu-Gnome login screen and login.

              Comment


              • #8
                Are you sure you don't mean $USER:'id - gn' (take note of the colon character in the center)?
                As well, that would be proportional to only $USER: since chown utilizes the primary group of the defined user if you miss out the group name.

                Comment


                • #9
                  Both : and . will work fine, didn't think about overlooking group like $USER:

                  Comment


                  • #10
                    Check info coreutils and the segment which is about chown. I'll make over it to : in case of username contains dot.

                    Comment


                    • #11
                      Exactly: "New scripts have to avoid the use of '.' because it is not portable [Ö ]." Seems like we both having acquired some knowledge today.

                      Comment

                      Working...
                      X