Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 6834 - Any user may cause an inteactive startup
Any user may cause an inteactive startup
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
i386 Linux
high Severity medium
: ---
: ---
Assigned To: Bill Nottingham
: Security
Depends On:
  Show dependency treegraph
Reported: 1999-11-08 15:18 EST by robert
Modified: 2014-03-16 22:11 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-11-09 11:23:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description robert 1999-11-08 15:18:36 EST
If somebody does command:
touch /tmp/confirm
RedHat 6.1, when rebooted, automatically enters in interactive startup
So no process from /etc/rc?.d/S* will be started
and system won't boot up until admin comes and presses N or Y or C on the console
in /etc/rc.d/rc.sysinit it should be removed before /sbin/getkey will be spawned
I think a few last lines from /etc/rc.d/rc.sysinit should be like these:
if [ "$PROMPT" != "no" ]; then
   /sbin/getkey i && CONFIRM="yes"
[ "$CONFIRM" = "yes" ] && touch /tmp/confirm || rm -f /tmp/confirm || true
Better solution: MOVE this flag file to NONWORDWRITEABLE directory, like /var/lock,

Robert Luberda <robert@pingu.ii.uj.edu.pl>

PS. There's another problem with /tmp/confirm: if admin wants system
to enter interacive startup by pressing key 'I' and /tmp/confirm exists and it's a directory.
Comment 1 Bill Nottingham 1999-11-08 15:25:59 EST
moved to /var/run/confirm in initscripts-4.63-1.
There's no need to do the prior removal, as /var/run is
cleaned at each boot.

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