Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Authentication failed - cannot start X server

Posted on 2000-04-15
8
Medium Priority
?
250 Views
Last Modified: 2013-11-13
I tried to use the very new XFRee86-4.0 server, but ran into problems with .rpm dependencies.  I eventually gave up and tried to get my system back to its previous state.  To my chagrin, it now can no longer run X.  I'm using the same XF86Config file as before (I backed it up), and root seems to be able to run X, but when users try, they get

prompt> startx
Authentication failed - cannot start X server
Perhaps you do not have console ownership?

How can I fix this?

-Jim
0
Comment
Question by:truittj
  • 3
  • 2
  • 2
  • +1
8 Comments
 

Expert Comment

by:x25
ID: 2720455
try setuid root for /usr/X11R6/bin/X

X.25
vicer1@yahoo.com
0
 
LVL 3

Expert Comment

by:DVB
ID: 2727060
Aha, I have the same problem here. Caused by Star Office. I am going to try to uninstall the Xserver and reinstall it, but not any time soon. Temp workaround is to use kdm :(
0
 
LVL 3

Expert Comment

by:DVB
ID: 2727070
And suid root *is* dangerous!
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:truittj
ID: 2727681
Well, my suspicions are that the TakeConsole and GiveConsole scripts aren't doing exactly what they're supposed to, or that they're no longer being called.  Unfortunately, I needed the machine up and running a little too quickly, so I ended up re-installing XFree86.

What I would really like to see is a reference to an explanation/mapping out of what happens when a user types startx -- I started working my way through the scripts and links, and was quickly overwhelmed.

Thanks,

-Jim
0
 
LVL 2

Expert Comment

by:mzehner
ID: 2749879
I've done some research in this area, but only have a few paragraphs you may be interested in.  I will copy them in my comment below.  They are in HTML and I'm not sure they will copy correctly.
0
 
LVL 2

Accepted Solution

by:
mzehner earned 300 total points
ID: 2749885
An X windows session is started by entering the command "startx". This script resides in "/usr/X11R6/bin". The script startx, provides a front end to the xinit program, also in /usr/X11R6/bin, that is used to provide a nicer interface for running a single X windows session. Startx typically runs without command line arguments, but command line arguments will override its normal behavier described below. It gets client arguments from.xinitrc in the user's home directory, if the file exists. If not it uses arguments from "/etc/X11/xinit/xinitrc. If that file does not exist, it uses the file /usr/X11R6/lib/X11/xinit/xinitrc by default. It gets server arguments from .xserverrc in the user's home directory if it exists. If not, it uses arguments from "/etc/X11/xinit/xserverrc". The script startx passes client arguments, display arguments, and server arguments to the program xinit which resides in "/usr/X11R6/bin".

The program xinit will run the client script program passed to it. If no "xinitrc" program is passed or exists, it will run "xterm –geometry +1+1 login –display :0" as a default. If no specific server program is given, xinit will use "X :0" as a default. This means that the default server program is called X and the default client program is xterm. It is assumed, that there is a program named X in the searchpath, normally in "/usr/X11R6/bin". This may be a softlink to another program. In my case it is a link to Xwrapper in the same directory. This program has no documentation. However under "/etc/X11" is a program also called X which points to /usr/X11R6/bin/XF86_SVGA which I would expect to be used as a server program.

This is how it works in Redhat6.x.  I don't know your version of Linux.  I still have more to do in this area, but I hope this gives you somewhat of a start.
0
 
LVL 2

Expert Comment

by:mzehner
ID: 2749894
Also go to http://www.xfree86.org/FAQ/#Xwrapper and read the information on the program called Xwrapper which explains about how the Xwrapper program is used to allow the X server to access video hardware which requires root priviledges.  I think this is related to the problem you had.
0
 

Author Comment

by:truittj
ID: 2751510
Thanks much, that'll be a useful start when I go back to sort things out.

-Jim
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month7 days, 2 hours left to enroll

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question