Bug 9202

Summary: reboot requires access to DISPLAY
Product: [Retired] Red Hat Linux Reporter: Kjetil T. Homme <kjetilho>
Component: SysVinitAssignee: Bill Nottingham <notting>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 6.1CC: rhw, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-08 18:17:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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