Close Menu
    Facebook X (Twitter) Instagram
    • Articles
    • How it Works
    • Our Story
    • Contact Us
    Facebook X (Twitter) Instagram Pinterest Vimeo
    IT Beginner
    • Home
    • Blog
      • Happiness
      • Productivity
      • Leadership
    • About us
    • Contact us
    IT Beginner
    Tips – Tricks

    Fixing Error in locking authority file .Xauthority

    18/07/2017Updated:19/07/2017No Comments2 Mins Read

    I installed xfce4 package to xubuntu by mistake (having multiple terminals plus virtualbox, i was installing/working debian machine on virtualbox but thought a terminal on my screen is virtualbox windows), after a reboot i can’t login to my machine. I got stuck at the login screen, it does give an error after login but pop back to login screen real fast so i could not read the errror.

    To read the error, you need to reboot the machine, while the machine is rebooting, hold “Shift” key until you see grup (GNU GRand Unified Bootloader) menu. Choose root/terminal.

    Note**: you can also use “Ctrl” + “Alt” + “F3″ at the login screen to login into the shell.

    You will have a terminal with root user, you want to switch to the user which you having problem login with

    # su user

    Then run startx

    $ startx

    Now you will be able to read the error, in my case i got

    x: user not authorized to run the X server, aborting.
    xinit: giving up
    xinit: unable to connect to X server: No such file or directory
    xinit: server error
    xauth: error in locking authority file /home/user/.Xauthority

    The error i got means i do not have authorize to access $HOME/.Xauthority file in my user directory.

    If you have the same problem, simply run chown as root to change the ownership back to the user. At the terminal as root, go to /home/user

    # cd /home/user

    list all files with ownership

    # ls -a -lh

    change file/files ownership to your user

    # chown user:user .Xau*

    reboot the machine, everything should be working as normal now.

    Xauthority
    Previous ArticleHow to update Ubuntu, Linux Mint, or Debian based kernel
    Next Article Stress test cpu on ubuntu

    Related Posts

    Tips – Tricks

    How to fix nginx an upstream response is buffered to a temporary file error

    05/08/2017
    Tips – Tricks

    Optimize WordPress with Nginx

    04/08/2017
    Security

    How to secure Apache HTTP Web Server

    29/07/2017
    Subscribe
    Notify of
    guest

    guest

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    0 Comments
    Oldest
    Newest Most Voted
    Inline Feedbacks
    View all comments
    • Productivity
    • Leadership

    No posts

    No posts

    Subscribe to Newsletter
    Our Socials
    • Instagram
    • Facebook
    • Twitter
    • YouTube
    • LinkedIn

    Archives

    • April 2025
    • May 2024
    • March 2023
    • July 2022
    • March 2022
    • July 2020
    • January 2019
    • August 2018
    • July 2018
    • August 2017
    • July 2017
    • September 2016

    Categories

    • Business
    • CCNA 1 Instructor Materials
    • CentOS
    • Database
    • Debian
    • Fedora
    • Firefox
    • Happiness
    • Hardware
    • ICND1 Labs
    • ICND2 Labs
    • Leadership
    • Linux Essentials
    • Linux Mint
    • Marketing
    • My SQL
    • Netflix
    • Networking
    • Productivity
    • Resources
    • Security
    • SEO
    • Server
    • Social Media
    • Software
    • Tips – Tricks
    • Ubuntu
    • Uncategorized
    • User Experience
    • WordPress
    • Xubuntu

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna accumsan in scelerisque.

    Facebook X (Twitter) Instagram Pinterest

    Type above and press Enter to search. Press Esc to cancel.

    wpDiscuz