LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-07-2004, 02:20 AM   #1
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
startx doesn't startx for user


Hi all,
Just upgraded to MDK10.1 to see if it is any improvement and it will just not go graphical unless I am root.
Issuing startx as a user shows the NVIDIA splash screen, swiftly followed by the usual background you would normally get as the login manager gets set to do its stuff. Then it just drops back to a console prompt, almost as if I had issued ctrl+alt+backspace. As root, no problems, logs in runs normally. The xorg log file shows no errors, a couple of warnings about missing fonts, but other than that no clues.
Any one any suggestions what this might be?

TIA
 
Old 11-07-2004, 01:00 PM   #2
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
As I recall, the same thing happened to me when I was (futilely) trying out Mdk 10.1 Community recently.

I'm almost certain it was because the system had shut down abnormally the last time, and there was a lock file that was locking me as normal user out of starting X, because the system was told I was already running X. As root I located the lock file and deleted it and then I was able to start X as normal user.

I wish I remembered the details, but at least this is a clue for you that might help.

(Edit: I have just searched and haven't located any such file. So... ? I'm virtually certain this is in essence what happened, but I have no idea what file I was able to delete in order to fix it.)

Last edited by jonr; 11-07-2004 at 01:29 PM.
 
Old 11-07-2004, 02:17 PM   #3
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Original Poster
Rep: Reputation: 98
Hi,
The lock file you refer to is /tmp/X0-lock which doesn't appear to be the cause of this problem as it isn't present prior to me issueing the startx command, and when that fails, the lock file is automatically removed. Have you any more ideas?
 
Old 11-07-2004, 02:30 PM   #4
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Really out of ideas, but I'm grateful for your reassurance I wasn't losing my mind--that there is such a file.

What I'm virtually certain of, is that it was an authority problem. Root could start X but normal user could not because authority was lacking. I wish I could remember what I did to fix it! I remember feeling very clever about it, because I was unable to get online to seek help, and I solved the problem all by myself (a rare event). Now I feel lacking in cleverness.

Please post what you find out if you do solve this problem.

Any others have ideas?
 
Old 11-07-2004, 03:07 PM   #5
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Yeah, it also may be that the system does not recognize the user's rights to his own configuration files in his home directory.

Try this...

Log in as root and change to the user's home directory.

e.g.

cd /home/USERNAME

then

find . -exec chown USERNAME {} \;

and

find . -exec chgrp USERNAME {} \;

Then try again.
 
Old 11-07-2004, 07:00 PM   #6
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
That kinda rings a bell, too. I think maybe I had to basically change some permissions and ownerships that got screwed up somehow. Which is similar to taking a lock off the files!
 
Old 11-08-2004, 04:03 PM   #7
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
OK, by chance I experienced the same problem I referred to above, again today.

I was playing around with other distributions and when I came back to Mandrake root could start X but as a normal user I couldn't, and got a timeout on the Xauthority file.

The solution: as root, change owner of jon's home directory to jon; and then give u+rxw permissions to the directory.

That fixed it. I could startx again as jon.

This may not be a problem identical to the one starting this thread, but it is what happened a few weeks ago, and same immediate easy solution.

The question is how the permissions and ownership ever got changed in the first place. I may never know.
 
Old 11-08-2004, 05:42 PM   #8
greenmeanie
Member
 
Registered: Sep 2004
Distribution: FreeBSD5.4
Posts: 82

Rep: Reputation: 15
upgrade

when i did the upgrade i was getting a pink background?
never figured it out.
 
Old 11-08-2004, 07:18 PM   #9
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Re: upgrade

Quote:
Originally posted by greenmeanie
when i did the upgrade i was getting a pink background?
never figured it out.
As root I get a red background, as normal old me, I get a really ugly blue one.
 
Old 11-08-2004, 07:30 PM   #10
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
As normal old me I get a lovely blue background, as root I get a really ugly red one...

 
Old 11-08-2004, 07:41 PM   #11
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Quote:
Originally posted by opjose
As normal old me I get a lovely blue background, as root I get a really ugly red one...

Trade ya computers!
 
  


Reply



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
Can startx as root, not as User Swampy Debian 4 03-19-2005 05:04 AM
Why can I startx with user. whutxuan Linux - Software 0 11-16-2004 03:41 AM
Bug / Xwindows / startx : xinit works but startx crash www.rzr.free.fr Linux - Software 4 10-17-2004 08:06 AM
startx vs startx -- :2 (font dimension is different!!) moly82 Linux - General 7 09-15-2003 12:11 PM
user can't startx synaptical Slackware 7 07-12-2003 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:52 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
Open Source Consulting | Domain Registration