<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: root shell changed - boot message in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528684#M367899</link>
    <description>You have had luck with this, a long ago I could completely lock myself out with a bad shell entry in passwd. It was a test machine at our local HP learning center, and the machine with 11i v1 didn't want me to let in. (No user accounts, only root)&lt;BR /&gt;&lt;BR /&gt;The single user mode was our last hope, it hasn't prompted for a password but terminated our session with simply a "bad shell" and nothing else could have been done. The system must have been completely reinstalled. :O&lt;BR /&gt;&lt;BR /&gt;Which version are you talking about? I'm glad that the single user mode login was modified.&lt;BR /&gt;</description>
    <pubDate>Fri, 06 Nov 2009 12:48:27 GMT</pubDate>
    <dc:creator>Viktor Balogh</dc:creator>
    <dc:date>2009-11-06T12:48:27Z</dc:date>
    <item>
      <title>root shell changed - boot message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528676#M367891</link>
      <description>We have an application that is normally setup using ksh and our documentation has instructions to change the shell for root to ksh.&lt;BR /&gt;&lt;BR /&gt;After spending some time reviewing information from HP I tested booting in single-user mode with root setup to use ksh.  When I did I received the following messages, but I was able to continue using the system.  There did not seem to be any need to reboot and change it.&lt;BR /&gt;&lt;BR /&gt;-----------------------------------------------&lt;BR /&gt;&lt;BR /&gt;INIT: SINGLE USER MODE&lt;BR /&gt;&lt;BR /&gt;INIT: WARNING: Bad shell "/usr/bin/ksh" for root.&lt;BR /&gt;FIX root ENTRY IN /etc/passwd AND REBOOT !!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;INIT: Running /sbin/sh&lt;BR /&gt;&lt;BR /&gt;-----------------------------------------------&lt;BR /&gt;&lt;BR /&gt;So it seems something is solving this problem on-the-fly but this is not documented.&lt;BR /&gt;&lt;BR /&gt;I'm very interested in what experiences others have had with this situation.&lt;BR /&gt;&lt;BR /&gt;Also, since the messages are prefixed with "INIT" I guess that is the program/module that is running.  Could this be a fix in that program/module and if so how can I track it down to determine if a given system has it?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Ken</description>
      <pubDate>Thu, 05 Nov 2009 16:54:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528676#M367891</guid>
      <dc:creator>Ken Englander</dc:creator>
      <dc:date>2009-11-05T16:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: root shell changed - boot message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528677#M367892</link>
      <description>Hi Ken:&lt;BR /&gt;&lt;BR /&gt;As you have found, do _NOT_ change root's shell in '/etc/passwd' from '/sbin/sh' to anything else.&lt;BR /&gt;&lt;BR /&gt;The '/sbin/sh' uses statically linked libraries so that no filesystems other than '/stand' need to be mounted.  Shells like '/usr/bin/sh' [the same Posix shell but with dynamic libraries to be found in '/usr'] and shells like '/usr/bin/ksh' require '/usr' to be mounted for their library support.&lt;BR /&gt;&lt;BR /&gt;Thus, during startup, before '/usr' is mounted, you have complete functionality for root with the '/sbin/sh'.  This also applies (of course) to single-user mode.&lt;BR /&gt;&lt;BR /&gt;This said, you will also find that the '/usr/bin/ksh' shell offered with standard HP-UX is a Korn88 shell and hardly differs at all from the standard HP-UX Posix one.&lt;BR /&gt;&lt;BR /&gt;Fix your '/etc/passwd' root entry.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 05 Nov 2009 17:07:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528677#M367892</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-11-05T17:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: root shell changed - boot message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528678#M367893</link>
      <description>Since the fix is already above I can only ask - lesson learned?</description>
      <pubDate>Thu, 05 Nov 2009 17:20:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528678#M367893</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-11-05T17:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: root shell changed - boot message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528679#M367894</link>
      <description>James thanks for the explanation, but that does not answer the question about the apparent self-healing mode.&lt;BR /&gt;&lt;BR /&gt;Also, just FYI - I/we do not have the option to change it because we have so much code that MIGHT be adversely affected if I change the shell back.  I would much rather leave it using the Posix shell but it is not my decision and again, it could have a serious impact.  Our code and this procedure is deployed on hundreds of systems with thousands of users.  We cannot make a change like this without lots of testing.</description>
      <pubDate>Thu, 05 Nov 2009 17:36:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528679#M367894</guid>
      <dc:creator>Ken Englander</dc:creator>
      <dc:date>2009-11-05T17:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: root shell changed - boot message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528680#M367895</link>
      <description>It stuck in single user mode, right?</description>
      <pubDate>Thu, 05 Nov 2009 17:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528680#M367895</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-11-05T17:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: root shell changed - boot message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528681#M367896</link>
      <description>I guess I fail to understand what root would be "running" that might be impacted...&lt;BR /&gt;&lt;BR /&gt;or why "We have an application that is normally setup using ksh and our documentation has instructions to change the shell for root to ksh"&lt;BR /&gt;&lt;BR /&gt;usually, in such cases, what they mean is "login as root, change to ksh and...."&lt;BR /&gt;&lt;BR /&gt;in which case you simply run ksh at the prompt and proceed on.  &lt;BR /&gt;&lt;BR /&gt;If it's 3rd party stuff, I'd contact the vendor and ask them what's going on.</description>
      <pubDate>Thu, 05 Nov 2009 17:52:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528681#M367896</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-11-05T17:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: root shell changed - boot message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528682#M367897</link>
      <description>Maybe now, the init is smart enough to figure out that under single user mode, it is better to use /sbin/sh in case /usr is corrupted otherwise systems admin will be stuck in no where. &lt;BR /&gt;&lt;BR /&gt;But when the system can go to level 3, then /sbin/sh won't be so critical and it won't bother to use it.</description>
      <pubDate>Thu, 05 Nov 2009 19:05:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528682#M367897</guid>
      <dc:creator>Tingli</dc:creator>
      <dc:date>2009-11-05T19:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: root shell changed - boot message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528683#M367898</link>
      <description>&amp;gt; Also, just FYI - I/we do not have the option to change it because we have so much code that MIGHT be adversely affected if I change the shell back. I would much rather leave it using the Posix shell but it is not my decision and again, it could have a serious impact. Our code and this procedure is deployed on hundreds of systems with thousands of users. We cannot make a change like this without lots of testing.&lt;BR /&gt; &lt;BR /&gt;I think there is a misunderstanding. The requirement to use /sbin/sh is only for root. I would hope that none of your code and users are logging in as root. Most auditors will issue a security/stability finding for such a situation. The root login should be reserved only for system maintenance that cannot be accomplished by standard users.&lt;BR /&gt; &lt;BR /&gt;And as mentioned, /sbin/sh is actually a superset of ksh (technically, ksh-1988) and only some obscure scripting constructs are different between the two shells. It is important not to confuse /sbin/sh (and /usw/bin/sh) with the Bourne shell. On HP-UX, the obsolete Bourne shell is hidden in /usr/old/bin.&lt;BR /&gt; &lt;BR /&gt;But the bottom line is that a version of ksh with archived libraries (needed for single user mode) is not available. The only commands available in single user mode are found in /sbin. While it is true that you can mount /usr and then ksh would work, but your interface to HP-UX does not exist until a shell starts -- only /sbin/sh will work.</description>
      <pubDate>Fri, 06 Nov 2009 03:33:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528683#M367898</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-11-06T03:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: root shell changed - boot message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528684#M367899</link>
      <description>You have had luck with this, a long ago I could completely lock myself out with a bad shell entry in passwd. It was a test machine at our local HP learning center, and the machine with 11i v1 didn't want me to let in. (No user accounts, only root)&lt;BR /&gt;&lt;BR /&gt;The single user mode was our last hope, it hasn't prompted for a password but terminated our session with simply a "bad shell" and nothing else could have been done. The system must have been completely reinstalled. :O&lt;BR /&gt;&lt;BR /&gt;Which version are you talking about? I'm glad that the single user mode login was modified.&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2009 12:48:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528684#M367899</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-11-06T12:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: root shell changed - boot message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528685#M367900</link>
      <description>Thank you all for your input!&lt;BR /&gt;&lt;BR /&gt;Do any of you know where is the code that is sending me the messages, which I was guessing is called INIT based on the messages?&lt;BR /&gt;&lt;BR /&gt;Torsten&lt;BR /&gt;No, it is not stuck anywhere.  The problem has been resolved.  I just want to find out if anyone knows specifically about it being fixed since that is what the messages and what happened suggests to me.&lt;BR /&gt;&lt;BR /&gt;OldSchool&lt;BR /&gt;The application is written by my company.  The HP-UX systems serve as clients so very few people log in to them.  However, much of our procedures related to configuring and updating our software rely on root access.&lt;BR /&gt;&lt;BR /&gt;I understand your suggestion, but you do not understand that we cannot simply change the process in an overnight sort of fashion.&lt;BR /&gt;&lt;BR /&gt;Bill&lt;BR /&gt;Thanks for your input.  I do understand we are only talking about root but changing its shell COULD introduce a problem.  Our code has a habit of finding obscure things!&lt;BR /&gt;&lt;BR /&gt;The root login should only be used by a few individuals, but unfortunately all of our stuff has been tested with the shell set to ksh.  Standard users do not even login to our servers - all of their work is done from clients, typically PC-like.&lt;BR /&gt;&lt;BR /&gt;Viktor&lt;BR /&gt;I am using HP-UX 11i v3 based on the Mar08 update.</description>
      <pubDate>Fri, 06 Nov 2009 15:59:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528685#M367900</guid>
      <dc:creator>Ken Englander</dc:creator>
      <dc:date>2009-11-06T15:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: root shell changed - boot message</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528686#M367901</link>
      <description>&amp;gt;&amp;gt;&amp;gt;Do any of you know where is the code that is sending me the messages, which I was guessing is called INIT based on the messages?&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;Yes , you right, &lt;BR /&gt;&lt;BR /&gt;Don't  ever do that :( Chaning the default shell for "root"</description>
      <pubDate>Sat, 07 Nov 2009 17:27:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-changed-boot-message/m-p/4528686#M367901</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2009-11-07T17:27:43Z</dc:date>
    </item>
  </channel>
</rss>

