Close Menu
    Facebook X (Twitter) Instagram
    • Download Cisco Packet Tracer
    Facebook X (Twitter) Instagram Pinterest Vimeo
    IT Beginner
    • Home
    • Server
    • WordPress
    IT Beginner
    Home»Tips – Tricks»Fixing Error in locking authority file .Xauthority
    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
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    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
    Tags
    apache centos Centos 6 cuda Desktop Environment dual boot environment featured gnome GUI hostname hosts intel kernel kill lamp server lemp server life MariaDB netflix nginx nvidia password php-fpm phpmyadmin pids processes s.m.a.r.t Security session solid state drive ssd ssh ssh server tag 1 tag 2 Ubuntu upgrade varnish VirtualBox VNC Server web server window manager wordpress xfce
    Facebook X (Twitter) Instagram Pinterest

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

    wpDiscuz