LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-17-2015, 08:22 PM   #1
Tim__
LQ Newbie
 
Registered: Mar 2015
Location: Boston, Ma
Distribution: Manjaro and CentOS at work, Ubuntu at home
Posts: 16

Rep: Reputation: Disabled
Cannot startx as normal user


On a fresh install of Arch with little more than openbox installed when I try to startx as a regular user this is the feedback I get:
xauth: timout in locking authority file /home/tim/.Xauthority
xauth: timout in locking authority file /home/tim/.Xauthority
xauth: timout in locking authority file /home/tim/.Xauthority
xauth: timout in locking authority file /home/tim/.Xauthority
Fatal server error:
(EE) cannot open log file "/home/tim/.local/share/xorg/Xorg.0.log"
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
xauth: timeout in locking authority file /home/tim/.Xauthority

After looking into the error someone suggested to copy the file from root user. When I try to view, less, or open the file I get strange feedback "magic cookie" and then everything starts to trip out and I cant seem to reverse it without a reboot.
 
Old 03-17-2015, 08:36 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,253

Rep: Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559
Sounds like a corrupt xauthority file just delete it it will be recreated for you, also check ownership of your home folder
Code:
chown -R USER:USER /home/USER
where USER is your user name,, also check that /tmp is readable/writable by yourself as wrong permissions on /tmp can cause some odd problems.
 
Old 03-18-2015, 04:17 AM   #3
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Which command did you use to create your "normal" user?
 
Old 03-25-2015, 12:49 PM   #4
Tim__
LQ Newbie
 
Registered: Mar 2015
Location: Boston, Ma
Distribution: Manjaro and CentOS at work, Ubuntu at home
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
Sounds like a corrupt xauthority file just delete it it will be recreated for you, also check ownership of your home folder
Code:
chown -R USER:USER /home/USER
where USER is your user name,, also check that /tmp is readable/writable by yourself as wrong permissions on /tmp can cause some odd problems.
I'm sorry for the delayed response. This was the fix. When I created the user I forgot to create the directory for it, so I created the home directory as root then set it as "tim"s home directory. Removed and readded the user and this fixed the issue.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Normal user can't startx xorg only root in debain? Bchopra Linux - General 30 07-13-2015 07:42 AM
[SOLVED] NetworkManager isn't behaving properly in normal user, but works well in root user. MarkZar Linux - Networking 1 02-17-2013 12:32 AM
startx doesn't startx for user vdemuth Mandriva 10 11-08-2004 08:41 PM
startx does not load when logged in as a normal user? xunzi Linux - Newbie 0 06-29-2004 09:37 AM
'startx' command unavailable to normal users abs Slackware 13 02-14-2004 10:52 PM


All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration