Bug 6834

Summary: Any user may cause an inteactive startup
Product: [Retired] Red Hat Linux Reporter: robert
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: 6.1CC: rvokal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-11-09 16:23:04 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 robert 1999-11-08 20:18:36 UTC
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.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 20:25:59 UTC
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.