<?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: Feedback using bash shell for root in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768075#M260744</link>
    <description>Thanks a lot to everyone who responded.  I didnâ  t do a good job in presenting my question.  I am not thinking to change the default shell in the password file. I still remember a long night several years ago during which I struggled to reboot a production server and it ended up that somebody changed the default shell to korn.  As for posix shell, I use it for long years and personally like it.  Thanks Patrick for catching my typo about bourne. Sorry I was thinking Solaris then. &lt;BR /&gt;I donâ  t expect to be able to boot at all in single-user if bash is the default shell since several libraries will be missing.  &lt;BR /&gt;What I am thinking to do is: 1) Leave the /etc/passwd default shell as POSIX. 2) Add a line at the â  endâ   of the root profile that will execute bash.    &lt;BR /&gt;This way, in the normal login the root will be switching to bash. In single-user mode, I expect to be able to boot but get an error on â  exec bashâ   line and then keep working with the statically linked POSIX.&lt;BR /&gt;The reason for using bash is to accommodate the other admins who use bash especially in Linux and may have to work on HPUX in an emergency situation. &lt;BR /&gt;</description>
    <pubDate>Sun, 09 Apr 2006 23:09:01 GMT</pubDate>
    <dc:creator>Adel Habashy_1</dc:creator>
    <dc:date>2006-04-09T23:09:01Z</dc:date>
    <item>
      <title>Feedback using bash shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768065#M260734</link>
      <description>We are thinking to use bash in our mixed unix environment as the standard root login shell.  &lt;BR /&gt;bourne shell is hpux default and if troubles happen, /sbin/sh has no dependancies.  bash has dependency on few libraries under a different file system /usr/lib but I mirror all the OS file systems which covers this point.  Does anybody sees any concern or negative outcome when changing the root shell to bash?  I certainly appreciate any feedback.</description>
      <pubDate>Fri, 07 Apr 2006 10:35:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768065#M260734</guid>
      <dc:creator>Adel Habashy_1</dc:creator>
      <dc:date>2006-04-07T10:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Feedback using bash shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768066#M260735</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;NO, don't change the default root shell!&lt;BR /&gt;&lt;BR /&gt;Root's default shell must be the statically linked Posix shell found in '/sbin/sh'.  In this fashion, everything is available even before shells in '/usr' with dynamic libraries are available when '/usr' is finally mounted.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 07 Apr 2006 10:46:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768066#M260735</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-04-07T10:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Feedback using bash shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768067#M260736</link>
      <description>ABSOLUTELY POSITIVELY DO NOT CHANGE THE DEFAULT SHELL IN /etc/passwd!!!!!!&lt;BR /&gt;&lt;BR /&gt;If you do that you will almost certainly break things, and it is possible that the machine may have problems booting.  &lt;BR /&gt;&lt;BR /&gt;There are lots of things that are very dependent on the '/sbin/sh' for root.&lt;BR /&gt;&lt;BR /&gt;You are actually incorrect in saying that the bourne shell is the default.  the 'sh' shell in HP-UX is the POSIX shell.&lt;BR /&gt;&lt;BR /&gt;Also, if you change the default in /etc/passwd, you may not be able to effectively use single-user mode.  When booting to single-user mode, you do NOT have any file systems mounted, other than '/', so you would NOT have any of the dependencies for bash.  That's the purpose of '/sbin/' executables.  They are all statically linked, so they don't require any additional libraries from /usr/lib or anywhere else.&lt;BR /&gt;&lt;BR /&gt;My recommendation:  DO NOT CHANGE ANYTHING. ESPECIALLY DO NOT CHANGE /etc/passwd. Learn the POSIX shell.  Do a 'man sh-posix' and read up on the shell.  You'll probably find you can do as much with POSIX as with bash.&lt;BR /&gt;&lt;BR /&gt;If you must use bash, login as root and then do an 'exec bash' to start the bash shell for that particular session.</description>
      <pubDate>Fri, 07 Apr 2006 10:47:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768067#M260736</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-04-07T10:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Feedback using bash shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768068#M260737</link>
      <description>I add to the chorus - do not change root shell&lt;BR /&gt;&lt;BR /&gt;You will most likely have booting trouble. You will need to boot into single user to fix the /etc/passwd entry and change it back to /bin/sh&lt;BR /&gt;&lt;BR /&gt;If you want root to have bash, put it root .profile &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Apr 2006 10:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768068#M260737</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-04-07T10:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Feedback using bash shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768069#M260738</link>
      <description>I think you'll find that the response is going to be unanimous:&lt;BR /&gt;&lt;BR /&gt;DO NOT CHANGE ROOT'S SHELL!!!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 07 Apr 2006 10:56:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768069#M260738</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-04-07T10:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Feedback using bash shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768070#M260739</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I really would NOT change the shell for root.&lt;BR /&gt;But you can setup an environment for 'bash' (or any other shell like tcsh as we have on solaris).&lt;BR /&gt;Check the conditions and if positive, start your customized shell (prob. via exec) in ~root/.profile:&lt;BR /&gt;...&lt;BR /&gt;case $- in&lt;BR /&gt;*i*) [ -x /usr/bin/bash ] &amp;amp;&amp;amp; exec /usr/bin/bash ;;&lt;BR /&gt;esac&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Fri, 07 Apr 2006 10:59:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768070#M260739</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-04-07T10:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Feedback using bash shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768071#M260740</link>
      <description>/bin/sh --  /sbin/sh&lt;BR /&gt;&lt;BR /&gt;My typo.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Apr 2006 11:02:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768071#M260740</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-04-07T11:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Feedback using bash shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768072#M260741</link>
      <description>The only way this makes any sense is if you create a statically linked version from source --- and even then it's dumb.&lt;BR /&gt;&lt;BR /&gt;The major problem is that any rc scripts which must execute before /usr is mounted are dogmeat without a statically linked shell.&lt;BR /&gt;&lt;BR /&gt;Moreover, I am not a big fan of bash:&lt;BR /&gt;&lt;BR /&gt;try this:&lt;BR /&gt;&lt;BR /&gt;echo "one two three" | read A B C&lt;BR /&gt;echo "A = ${A}"&lt;BR /&gt;echo "B = ${B}"&lt;BR /&gt;echo "C = ${C}"&lt;BR /&gt;&lt;BR /&gt;On most versions of bash this is a showstopper because it is such a useful construct that works perfectly under ksh or the POSIX shell.</description>
      <pubDate>Fri, 07 Apr 2006 11:13:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768072#M260741</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-04-07T11:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Feedback using bash shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768073#M260742</link>
      <description>Pre-11.00, you could do this on hp-ux without problems.&lt;BR /&gt;&lt;BR /&gt;However, since 11.00, you will get a very specific error message at boot up if you try this:&lt;BR /&gt;&lt;BR /&gt;init: warning: bad shell for root&lt;BR /&gt;&lt;BR /&gt;or sometimes:&lt;BR /&gt;&lt;BR /&gt;"No Shell".</description>
      <pubDate>Fri, 07 Apr 2006 11:15:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768073#M260742</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2006-04-07T11:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Feedback using bash shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768074#M260743</link>
      <description>And finally, have you looked at the differences between HP's POSIX sh and bash? The HP sh shell, ksh and bash are all based on ksh and the POSIX standard. So you would have to look hard to find important differences. Virtually all the shell built-ins are there, most of the options are the same, variable expansion, regular expressions are all the same.&lt;BR /&gt; &lt;BR /&gt;It is very difficult to locate the Bourne shell (/usr/old/bin/sh). Try using the HP POSIX shell and you may never go back to bash.  And of course, if you want bash because root is constantly being used in this system, the question is: why? root is for system maintenance, not for general usage. Your system be much more stable if you limit root access.</description>
      <pubDate>Fri, 07 Apr 2006 15:56:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768074#M260743</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-04-07T15:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Feedback using bash shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768075#M260744</link>
      <description>Thanks a lot to everyone who responded.  I didnâ  t do a good job in presenting my question.  I am not thinking to change the default shell in the password file. I still remember a long night several years ago during which I struggled to reboot a production server and it ended up that somebody changed the default shell to korn.  As for posix shell, I use it for long years and personally like it.  Thanks Patrick for catching my typo about bourne. Sorry I was thinking Solaris then. &lt;BR /&gt;I donâ  t expect to be able to boot at all in single-user if bash is the default shell since several libraries will be missing.  &lt;BR /&gt;What I am thinking to do is: 1) Leave the /etc/passwd default shell as POSIX. 2) Add a line at the â  endâ   of the root profile that will execute bash.    &lt;BR /&gt;This way, in the normal login the root will be switching to bash. In single-user mode, I expect to be able to boot but get an error on â  exec bashâ   line and then keep working with the statically linked POSIX.&lt;BR /&gt;The reason for using bash is to accommodate the other admins who use bash especially in Linux and may have to work on HPUX in an emergency situation. &lt;BR /&gt;</description>
      <pubDate>Sun, 09 Apr 2006 23:09:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768075#M260744</guid>
      <dc:creator>Adel Habashy_1</dc:creator>
      <dc:date>2006-04-09T23:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Feedback using bash shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768076#M260745</link>
      <description>Since bash and ksh and POSIX-sh are so similar, I would be concerned about letting a user have root access that doesn't know that there are other shells in the real world. Most bash users tell me that they can't tell the difference until they play with arrow keys and other user interface crutches. To me, allowing such a user to have root is asking for major problems since these users apparently can't swicth gears on another system. I would be very concerned about the major differences in handling volume managers, devicefiles, logfile locations, etc, causing problems with a novice sysadmin.</description>
      <pubDate>Mon, 10 Apr 2006 11:37:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768076#M260745</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-04-10T11:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Feedback using bash shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768077#M260746</link>
      <description>In a *really* emergency situation every working shell prompt will be appreciated&lt;BR /&gt;;-)&lt;BR /&gt;&lt;BR /&gt;So I would not change the default.</description>
      <pubDate>Mon, 10 Apr 2006 11:45:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/feedback-using-bash-shell-for-root/m-p/3768077#M260746</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-04-10T11:45:29Z</dc:date>
    </item>
  </channel>
</rss>

