LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   xstart: Cannot move old "/var/log/XFree86.0.log.old" (https://www.linuxquestions.org/questions/linux-newbie-8/xstart-cannot-move-old-var-log-xfree86-0-log-old-146207/)

linuxgamer09483 02-14-2004 10:03 PM

xstart: Cannot move old "/var/log/XFree86.0.log.old"
 
Hi. After much dorking around, I somehow managed to screw up xfree86. I can startx as root just fine, but as a user:

-------------------------------------------------------------------------------
Fatal server error:
Cannot move old "/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.

----------------------------------------------------------------------------------

What could this mean :confused: and what can be done?
Thanks.

[I am running slackware-current]

exodist 02-15-2004 01:54 AM

chmod u+s `which startx`
type that as root (real root, or su -, not su root), if it has an error then type "which startx" and replase `which startx` with whatever the output is (it find the startx file)

explination: x needs to move the log file, but the log directory is inaccessible to normal users for important security reasons, so startx needs to be run with root privilages, the u+s runs it with root privlages as a standard user without screwing security, it is called the sticky bit. that chmod u+s sets it.

linuxgamer09483 02-18-2004 07:52 PM

Thanks!


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