Bug 7097 - authority problems when starting X
authority problems when starting X
Status: CLOSED WORKSFORME
Product: Red Hat Linux
Classification: Retired
Component: XFree86 (Show other bugs)
6.1
All Linux
medium Severity low
: ---
: ---
Assigned To: Preston Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-11-18 06:24 EST by Rene Uittenbogaard
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-02-03 16:14:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Rene Uittenbogaard 1999-11-18 06:24:21 EST
Last weekend I upgraded my rh6.0 installation from XFree86-3.3.2-8 to
XFree86-3.3.5-3 using rpm -U. All the packages which it requires were
upgraded as well. I did not change the XF86Config file. Then when I tried
to use 'startx' from tty1, the following error message occurred:

Authentication failed - cannot start X server.
Perhaps you do not have console ownership?

I was, however, able to start an X session using xdm or when running startx
as root.



A related symptom was the following:
when entering 'startx -- :2' , (according to a debug 'echo' line in startx)
the startx script tries to run the command:

xinit /etc/X11/xinit/xinitrc -- :2 /home/rene/.xserverrc -auth
/home/rene/.Xauthority

which gives the following error:
Unrecognized option: /home/rene/.xserverrc

After moving the .xserverrc to /etc/X11/xinit/xserverrc and issuing the
same command, it tries to run:

xinit /etc/X11/xinit/xinitrc -- :2 /etc/X11/xinit/xserverrc -auth
/home/rene/.Xauthority

but this gives a different error:
Authentication failed - cannot start X server.
Perhaps you do not have console ownership?

I think this is very strange.

I was able to solve the problem by symlinking /usr/X11R6/bin/X to
/usr/X11R6/bin/XF86_SVGA and making XF86_SVGA suid root, followed by a
little hacking into the startx script in order to pass the command line
values to xinit in the correct order.
(i.e. xinit $clientargs -- $whichserver $display $serverargs)

I was wondering whether this is a bug or whether this is due to a wrong
method of upgrading the X server?
Comment 1 Jed S. Baer 2000-02-03 00:18:59 EST
I have the same problem, RH Service request 129465 - now closed. Because the
service request became very convoluted, I've posted a summary to my website.

  http://www.frii.com/~thag/startx-problem.html

Just FYI, hope it helps.
Comment 2 Preston Brown 2000-02-03 16:14:59 EST
the main problem is you probably do not have a recent pam.  We have fixed this
dependency for 6.2, but for now, make sure you have the latest errata release of
pam.

Note You need to log in before you can comment on or make changes to this bug.