Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
19
rated 0 times [  19] [ 0]  / answers: 1 / hits: 17542  / 2 Years ago, sun, november 28, 2021, 1:49:04

I wanted to manually configure the internet settings & decided to seek help from this website. Ubuntu did not allow me to perform step 1 saying,



X: user not authorized to run the X server, aborting


so I logged in as superuser by executing sudo -s. Then I executed step 1. Suddenly all the tray icons disappeared & the only thing that was being displayed was the wallpaper. I wasn't able to shutdown/restart & chose to shutdown the laptop directly with power button. Upon restart, I had the following problems,



PROBLEMS :




  • I am able to login with a guest account.

  • I'm unable to login with my user account. Logging in brings me back to the login screen.



I am using ubuntu 13.04. How can I fix this?


More From » login

 Answers
1

To solve the problem:


Open a terminal window Ctrl + Alt + T and type in the commands:


cd ~
sudo chown username:groupname .Xauthority

(replace username and groupname with that of your own, usually your group name will be same as your username.)


Avoid running startx as root:


Since you started X system as root (by logging-in as root and using startx) the file .Xauthority in your user-home directory (~) got owned by the root, and that's the reason why you're stuck with log-in loops. And that's why you shouldn't run sudo startx. You can solve this by giving the ownership of the file back to your user as shown above.


Reference:



[#27394] Sunday, November 28, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ncharm

Total Points: 255
Total Questions: 105
Total Answers: 118

Location: Virgin Islands (U.S.)
Member since Sat, May 6, 2023
1 Year ago
ncharm questions
;