Solved

Authentication failed - cannot start X server

Posted on 2000-04-15
8
218 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
 

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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 75 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now