Bug 9202 - reboot requires access to DISPLAY
Summary: reboot requires access to DISPLAY
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: SysVinit
Version: 6.1
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-02-08 02:25 UTC by Kjetil T. Homme
Modified: 2018-05-21 12:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-02-08 18:17:56 UTC
Embargoed:


Attachments (Terms of Use)

Description Kjetil T. Homme 2000-02-08 02:25:24 UTC
If DISPLAY is set to point at server which root lacks access to,
you can get two equally absurd results:

# /sbin/reboot
Xlib: connection to "haey.ifi.uio.no:0.0" refused by server
Xlib: Client is not authorized to connect to Server

Broadcast message from root (pts/0) Tue Feb  8 03:27:36 2000...

The system is going down for reboot NOW !!

(this "works")

# /sbin/reboot
X11 connection requests different authentication protocol:
'MIT-MAGIC-COOKIE-1' vs. ''.
Gdk-ERROR **: X connection to ifi.uio.no:11.1 broken (explicit kill or
server shutdown).
#
(this fails completely)

Lowlevel tools like reboot has no business talking X11.

(I couldn't reproduce this behaviour when I rebuilt sysvinit from the
SRPM.)

Comment 1 Bill Nottingham 2000-02-08 18:17:59 UTC
Is /usr/bin before /usr/sbin in your path
(and before /sbin); if so, you're running
into the pam_console stuff. Having /sbin
and /usr/sbin before /usr/bin in root's path
will fix this.

Comment 2 Riley H Williams 2000-02-09 18:45:59 UTC
My understanding is that to avoid problems like this, the correct path prefix
for root is...

    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin

...but raw installs of RedHat 6.1 appear to vary here depending on precicely
which packages are installed. I haven't managed to isolate this to any
particular package though.

Comment 3 openshift-github-bot 2018-05-21 12:56:44 UTC
Commit pushed to master at https://github.com/openshift/openshift-docs

https://github.com/openshift/openshift-docs/commit/e22b4984aba4249167b281581a3693827f4f82f5
Merge pull request #9258 from kalexand-rh/issue9202

clarifying NTP prereq


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