Bug 432073

Summary: single-user mode calls sulogin
Product: [Fedora] Fedora Reporter: Bill Nottingham <notting>
Component: event-compat-sysvAssignee: Casey Dahlin <cdahlin>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: notting, rvokal, valdis.kletnieks, vanhoof
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: 2008-02-14 05:28:27 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:
Bug Depends On:    
Bug Blocks: 431106    

Description Bill Nottingham 2008-02-08 18:12:55 UTC
Description of problem:

Historically, we just drop to a shell.

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

event-compat-sysv-0.3.9-5.fc9

Comment 1 Casey Dahlin 2008-02-10 23:52:15 UTC
What problems are created by this?

Comment 2 Bill Nottingham 2008-02-11 18:31:43 UTC
Changed expectations. Just changing it to /bin/bash should work.

Comment 3 Casey Dahlin 2008-02-11 21:34:20 UTC
Just built 0.3.9-6

I'll test it further when I can be in the physical presence of my testing box.

Comment 4 Casey Dahlin 2008-02-14 05:28:27 UTC
Latest package behaves well. Closing this one

Comment 5 Valdis Kletnieks 2008-03-22 11:42:31 UTC
Ahem. Many sites have this in their /etc/inittab:

sum:S:wait:/sbin/sulogin


And to top it off, the comments at the top of /etc/event.d/rcS-sulogin say:

# This task runs the sulogin binary during "single-user" mode.

And the file is *called* 'sulogin', not rcS-runbash.

I'd say there's an expectation that it invokes /sbin/sulogin, not a raw
unprotected shell....

Possible work-around while /etc/inittab is still around:

script
        runlevel --set S >/dev/null || true
        grep -q 'S:wait:/sbin/sulogin' /etc/inittab
        if [ $? = 0 ]; then
            /sbin/sulogin
        else
            /bin/bash
        fi

        if [ -r /etc/inittab ]; then


Comment 6 Bill Nottingham 2008-03-24 17:38:01 UTC
Don't think it's practical to rely on the presence of inittab. Renaming the file
could be an option, though.

Comment 7 Bill Nottingham 2008-03-24 17:38:36 UTC
That being said, it still falls under the general category of 'if you have
customized your /etc/inittab, you will need to do customization of the default
upstart setup.'

Comment 8 Valdis Kletnieks 2008-03-24 18:42:46 UTC
Right - but there's 2 points here: (1) There's precious little doc yet on how to
customize it, and (2) The file is *called* sulogin, the comment at the top
*says* it runs sulogin - but it doesn't, it runs bash instead.  Certainly
counter-intuitive.