Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 840492

Summary: "shutdown -n now" with wrong option makes host/guest into single user mode
Product: Red Hat Enterprise Linux 6 Reporter: Xiaomei Gao <xigao>
Component: upstartAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.4CC: michen
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-13 12:55:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
shutdown patch none

Description Xiaomei Gao 2012-07-16 13:48:00 UTC
Description of problem:

'shutdown -a/-f/-g/-n/-q/-v now' with these options all make guest into 

single user mode, but "man shutdown" has no these options.  


Version-Release number of selected component (if applicable):

#rpm -qf `which shutdown`

upstart-0.6.5-12.el6.x86_64

How reproducible:

100%

Steps to Reproduce:

1. # shutdown -n now
   
   The system is going down for maintenance NOW!

2. # runlevel 
     1 S

3. man shutdown
  
Actual results:

host/huest goes into single mode

Expected results:

should prompt info: shutdown: invalid option -- 'n'

Additional info:

Comment 2 Lukáš Nykrýn 2012-07-17 10:31:58 UTC
Created attachment 598599 [details]
shutdown patch

Thanks for the report, there should be probably some check for args. I will discuss this with upstream.

Comment 3 Lukáš Nykrýn 2012-07-24 11:37:32 UTC
This behavior is actually the same as in sysvinit. Maybe it would be better just to mention it in manpage. Again I will discuss this with upstream.

Comment 4 RHEL Program Management 2012-09-07 05:10:51 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 6 Lukáš Nykrýn 2015-10-13 12:55:04 UTC
This behavior is because of backward compatibility.