Results 1 to 10 of 10

Thread: Ubuntu 20.04 can't login with correct password - no .Xauthority folder

  1. #1
    Join Date
    Jul 2020
    Beans
    2

    Ubuntu 20.04 can't login with correct password - no .Xauthority folder

    Hello, this is my first time installing Ubuntu.
    I installed it alongside Windows 10 (dual boot).
    I got UEFI BIOS, and Nvidia GPU if that matters.

    i7 7700k, 16GB ddr4 RAM and gtx 1080

    Here is my procedure:

    1. Downloaded Ubuntu 20.04 from official Ubuntu website
    2. Using rufus, I flashed the image to the USB drive of 8GB (FAT32 formated)
    3. Plugged USB in and rebooted my PC. At the boot menu I chose the USB drive and then the file checking process started.
    4. During that checking process 0 errors have been found.
    5. Then the setup wizard showed up. I chose Install Ubuntu and chose the option "Install alongside Windows".
    6. I made an username and password, and chose to option to "Log in automatically".
    7. I dedicated 70GB via the slider to the Ubuntu, and left 150GB to the Windows 10.
    8. The installation proces began, and completed after few minutes.
    9. I was asked to reboot my PC and then to eject the USB drive and press ENTER.
    10. Did that, and then I got automatically booted into Windows 10.
    11. Rebooted my PC again, and in the boot options chose "ubuntu". Booted into Ubuntu and got to the screen where I need to choose a User and then enter a password.
    12. Entered the correct password and then got simply return to the user selection screen. No message came up that the password is incorrect for example.
    13. Just for testing purposes, I entered the wrong password, and then the message came that the password is incorrect, and I stayed on the "enter password" screen.


    Online people have told to log in to shell via CTRL + ALT + F3. I did that and I was able to log in then.
    During that shell, my screen glitched a bit. I was able to see Ubuntu desktop on some parts of my screen.
    People online suggested to look for .Xauthority folder, and I did everything, but it always said "no such file or direcctory".

    I have no idea what to do anymore. I even tried installing Ubuntu with custom partitions, and the outcome was the same. It installed without errors, but always unable to login.
    Last edited by smolla97; July 9th, 2020 at 11:33 AM.

  2. #2
    Join Date
    Aug 2005
    Location
    Northern Michigan USA
    Beans
    2,241
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Ubuntu 20.04 can't login with correct password - no .Xauthority folder


  3. #3
    Join Date
    May 2010
    Beans
    702

    Re: Ubuntu 20.04 can't login with correct password - no .Xauthority folder

    Did you MD5 test the ISO you downloaded?

  4. #4
    Join Date
    Jul 2020
    Beans
    1

    Re: Ubuntu 20.04 can't login with correct password - no .Xauthority folder

    Can you check Graphics mode in UEFI and let us know or change it to hybrid mode?

    When i installed Ubuntu 20.04 on my lenovo x1 extreme laptop then i keep graphics mode as "discrete" while installing but once installation is done then i have change it back to "hybrid" graphics mode.

  5. #5
    Join Date
    May 2008
    Beans
    937
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Ubuntu 20.04 can't login with correct password - no .Xauthority folder

    Quote Originally Posted by smolla97 View Post
    [*]I made an username and password, and chose to option to "Log in automatically".
    .
    I think that, at this stage, it would be better to re-install and not choose automatic log in.

  6. #6
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Ubuntu 20.04 can't login with correct password - no .Xauthority folder

    There is no .Xauthority file in Ubuntu 20.04 though I believe it is present in most if not all the other flavours of *ubuntu; certainly it's in my Xubuntu 20.04

  7. #7
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    5,005
    Distro
    Xubuntu

    Re: Ubuntu 20.04 can't login with correct password - no .Xauthority folder

    .Xauthority is a file not a folder
    in my experience i can fix it by logging in at a tty (Ctrl+Alt+F2) and deleting the file
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  8. #8
    Join Date
    Mar 2011
    Beans
    1,636

    Re: Ubuntu 20.04 can't login with correct password - no .Xauthority folder

    Login to the virtual terminal off F3 again, and take a look at the X errors file in /var/log/Xorg.0.log There may be several of them with slightly different names, but the error will be in all of tem I'd guess.

  9. #9
    Join Date
    Jul 2020
    Beans
    2

    Re: Ubuntu 20.04 can't login with correct password - no .Xauthority folder

    Quote Originally Posted by tea for one View Post
    I think that, at this stage, it would be better to re-install and not choose automatic log in.
    This has fixed it. thanks!!!

  10. #10
    Join Date
    May 2008
    Beans
    937
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Ubuntu 20.04 can't login with correct password - no .Xauthority folder

    Quote Originally Posted by smolla97 View Post
    This has fixed it. thanks!!!
    Splendid - Please mark the thread as solved to help other searchers.

    https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •