Bug 6834 - Any user may cause an inteactive startup
Any user may cause an inteactive startup
Status: CLOSED ERRATA
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
6.1
i386 Linux
high Severity medium
: ---
: ---
Assigned To: Bill Nottingham
: Security
Depends On:
Blocks:
  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:
Environment:
Last Closed: 1999-11-09 11:23: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 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
Solution:
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:
CONFIRM="no"
if [ "$PROMPT" != "no" ]; then
   /sbin/getkey i && CONFIRM="yes"
fi
[ "$CONFIRM" = "yes" ] && touch /tmp/confirm || rm -f /tmp/confirm || true
wait
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.