Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It most likely has a temp file laying around.
I have no clue where they are, but with strace you can look to see what file it checks right before it gives you that message. Go, and delete it. Most likely something in /tmp
I did the 'strace', but was not able to make anything out of it. My effort to get the screenshot into this post of mine did not succeed, as I was unable to copy-paste the contents.
I noticed an interesting coincidence. All the logins from which I had used Yahoo! Chat had the problem. I wasn't able to execute startx again in those login names.
Problem is probably caused by a lockfile or temp file, as mentioned.
Check what "ls -la" says... make sure there are no files owner by "root" in your homedir. Try
"find /home/yourhome -user root" and check what is found. Also check /tmp for useless tempfiles.
I once got one of my own tempfiles replaced by root's tempfile when I did "sudo <graphical_program>". Couldn't log in to Gnome from GDM before it was removed.
1) I changed all the ownership of directories and files in my home directory to my username.
2) Removed directories/file(s) from the /tmp folder that had my ownership.
3) Deleted .X0-lock file from the /tmp folder
Result:
No difference!!! I am still not able to run startx under my user name.
It is about time that I found a solution to my problem. I realized, or stumbled upon, to be more precise, on the solution. I was able to get back the GUI after deleting the file .Xauthority from all the logins where I had the problem.
Any idea why that particular file was causing this?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.