[Bug 1144] Generated rc script for sshd forces non-existent shell.

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Jan 12 05:42:14 EST 2006


http://bugzilla.mindrot.org/show_bug.cgi?id=1144

           Summary: Generated rc script for sshd forces non-existent shell.
           Product: Portable OpenSSH
           Version: 4.2p1
          Platform: ix86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build system
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: david.levy at tiscali.co.uk


I have just installed openssh on my Sun Cobalt Qube, running Linux. It is a Red
Hat variant.

The shell interpreter for the rc script forces /sbin/sh. This seems to be
defined in opensshd.init.in. This shell does not exist on this implementation
of Linux. I have written about this in (much more) detail at
http://blogs.sun.com/roller/page/DaveLevy/20060104. 

NB This would seem to me to be a common problem but I havn't found any
references in the archives.

A simple check to see if there is /sbin/sh could be made and the first line of
the script amended dependent on the result of the test. The copy statement,
moving the generated script from the build directory to the installed directory
may require to be managed by a similar test. The blog article above has code
examples which I wrote and you are free to use.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list