LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   XServer only works for ROOT... (https://www.linuxquestions.org/questions/slackware-14/xserver-only-works-for-root-157732/)

klatu 03-14-2004 08:16 PM

XServer only works for ROOT...
 
I have done searches with all combos that I could think of. I have not found an answer yet so I thought I would post for help.

All worked fine until I upgraded the Kernel to 2.4.25 with swaret. Then all worked except my ATI drivers. I re-installed the drivers and all seemed OK. GLXGEARS was good in root and other users. When I tried to play UT2004demo the computer froze in all but root. I would have to hit the reset or power to reboot. I tried to get permission for other users with UT2004 but I just make things worse. I have deleted the other users and added new users with the same results. Only root can startx.

Here is the error message I get with all but root.


Using authority file /home/j/.Xauthority
Writing authority file /home/j/.Xauthority
Using authority file /home/j/.Xauthority
Writing authority file /home/j/.Xauthority
Fatal server error:
Cannot move old logfile "/var/log/XFree86.0.log.old"
When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
Please report problems to xfree86@xfree86.org.
giving up.
xinit: No such file or directory (errno 2): unable to connect to X server
xinit: No such process (errno 3): Server error.
startx
logout


Thanks for any help.

kdepa 03-14-2004 10:21 PM

Hmm
is it possible that you dont have a .profile file set up in your home directory?
If so, just do the following:

cp /etc/profile .profile

making sure you're in your home folder. If necessary, login/su to root. It fixed my problem with xf86 and root.

urka58 03-15-2004 05:12 PM

Not sure of that, but I had similar problems with dri driver permissions.
Look at the bottom of your /etc/X11/XF86Config and change to
mode 0777 and uncomment the last three lines.
This should give everybody permission using that driver
Ciao

klatu 03-15-2004 07:24 PM

Thanks for the suggestions.

I tried each and both, but still no go. I stil get the same error with any user but root. I'll keep digging (and checking this thread).

Thanks again.

klatu 03-15-2004 09:41 PM

Well, I've managed to bugger things up more. Now I just get "-sh startx command not found" with anything but root.

I was trying some thing I found with google. I think it was the chmod command:

chmod 777 /usr/X11R6/bin/init/

but I'm not sure. I've been searching and trying things, but I always try to login after each change but maybe I've been at it a little to long.

squid_101 06-23-2004 02:07 AM

As root, try

chmod ug+s `which X`

(`which X` is replaced with the path to X)

This will set the perissions on X to:
-rwsr-sr-x 1 root root 7828 May 29 21:33 /usr/X11R6/bin/X*

which means that X will run as root when you "startx" as a user and, thus, be able to move/modify the XFree86 log files in /var/log/.

klatu 06-23-2004 10:36 PM

Thanks for the input but I wiped the install and started over some time back.

I guess I'm still looking for that 'linux distro' that fits.

gbonvehi 06-23-2004 11:26 PM

klatu, i think you must reinstall i don't know what u did but i never had that problem with any distro or version that i've tried. I know it's hard but i don't think of any other solution than what the guys told you here :/


All times are GMT -5. The time now is 03:26 AM.