<?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: default shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741031#M67665</link>
    <description>Luiz-&lt;BR /&gt;&lt;BR /&gt;short answer is that root has to be in sh shell.  There have been a number of threads here about people who have had lots of problems when they start switching root shell.  is there a reason why you want to change it?&lt;BR /&gt;&lt;BR /&gt;Mark</description>
    <pubDate>Mon, 10 Jun 2002 12:38:34 GMT</pubDate>
    <dc:creator>Mark Vollmers</dc:creator>
    <dc:date>2002-06-10T12:38:34Z</dc:date>
    <item>
      <title>default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741030#M67664</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I downloaded and successfully installed bash from .depot file.&lt;BR /&gt;&lt;BR /&gt;So, I wish to define bash as default shell for root account. I used SAM from HP to set this.&lt;BR /&gt;&lt;BR /&gt;Meanwhile, when I changed root??s default shell from SH to BASH, I wasn??t able to log in FTP. I received the message: "530 - root access denyed..."&lt;BR /&gt;&lt;BR /&gt;When I back to SH, all get OK again.&lt;BR /&gt;&lt;BR /&gt;Can anyone help me?&lt;BR /&gt;&lt;BR /&gt;thanks &amp;amp; regards,&lt;BR /&gt;&lt;BR /&gt;Luiz Fernando</description>
      <pubDate>Mon, 10 Jun 2002 12:30:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741030#M67664</guid>
      <dc:creator>Luiz Fernando</dc:creator>
      <dc:date>2002-06-10T12:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741031#M67665</link>
      <description>Luiz-&lt;BR /&gt;&lt;BR /&gt;short answer is that root has to be in sh shell.  There have been a number of threads here about people who have had lots of problems when they start switching root shell.  is there a reason why you want to change it?&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Mon, 10 Jun 2002 12:38:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741031#M67665</guid>
      <dc:creator>Mark Vollmers</dc:creator>
      <dc:date>2002-06-10T12:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741032#M67666</link>
      <description>You really DO NOT want to change root from "sh" to "bash" because of many issues, like not being able to boot your machine. If you want to switch to bash after you have logged in, then that's not an issue, as I usually switch to ksh quite often.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 10 Jun 2002 12:40:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741032#M67666</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-06-10T12:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741033#M67667</link>
      <description>Luiz,&lt;BR /&gt;&lt;BR /&gt;Check the following thread, in particular Bill Hassell's comments:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2efaa14d9abcd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2efaa14d9abcd4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Basically the idea is - DON'T&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 10 Jun 2002 12:41:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741033#M67667</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-06-10T12:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741034#M67668</link>
      <description>Hi Luiz,&lt;BR /&gt;&lt;BR /&gt; DO NOT change the root's default shell...not only will you see ftp weirdness...YOU'LL NOT BE ABLE TO BOOT THE SYSTEM.&lt;BR /&gt;&lt;BR /&gt;You can change the shell in a .profile command if you must...or from the command line or a script, etc.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Mon, 10 Jun 2002 12:41:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741034#M67668</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-06-10T12:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741035#M67669</link>
      <description>Luiz,&lt;BR /&gt;&lt;BR /&gt;Also, please read this thread:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x96b70bce6f33d6118fff0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x96b70bce6f33d6118fff0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 10 Jun 2002 12:44:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741035#M67669</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-06-10T12:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741036#M67670</link>
      <description>Hi,&lt;BR /&gt;sh is mandatory for root.</description>
      <pubDate>Mon, 10 Jun 2002 12:47:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741036#M67670</guid>
      <dc:creator>Marcin Wicinski</dc:creator>
      <dc:date>2002-06-10T12:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741037#M67671</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;thank you all...&lt;BR /&gt;&lt;BR /&gt;I would like to explain why I want to change root??s shell.&lt;BR /&gt;&lt;BR /&gt;I want to use the bash autocomplete feature, which is not present in sh. So I decided to change to bash.&lt;BR /&gt;&lt;BR /&gt;But, as you said, I shouldn??t do this. So, I would like to know if is possible to use autocomplete feature in sh or if there is another way to call bash whenever I start a new terminal windows in hp-ux system.&lt;BR /&gt;&lt;BR /&gt;I wait your comments,&lt;BR /&gt;&lt;BR /&gt;thanks &amp;amp; regards,&lt;BR /&gt;&lt;BR /&gt;Luiz Fernando</description>
      <pubDate>Mon, 10 Jun 2002 13:09:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741037#M67671</guid>
      <dc:creator>Luiz Fernando</dc:creator>
      <dc:date>2002-06-10T13:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741038#M67672</link>
      <description>Luiz,&lt;BR /&gt;&lt;BR /&gt;You don't need bash.  Stick with the posix shell as outlined in the threads you were pointed to.  The posix shell offers file name completion (which is what I believe you were referring to when you said "auotcomplete feature") as well as history file/command line edit.  It should be every thing you need.&lt;BR /&gt;&lt;BR /&gt;And please assign points to responses - it's the only reward those that help you get and it's the only way for people reviewing this post in the future to tell which answers helped.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 10 Jun 2002 13:35:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741038#M67672</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-06-10T13:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741039#M67673</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;  It is not suggested to change root's default shell. Try to keep /sbin/sh only. In case change is must, then add bash shell in /etc/shells file to work ftp.&lt;BR /&gt;&lt;BR /&gt;Best of luck&lt;BR /&gt;Shahul</description>
      <pubDate>Mon, 10 Jun 2002 13:49:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741039#M67673</guid>
      <dc:creator>Shahul</dc:creator>
      <dc:date>2002-06-10T13:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741040#M67674</link>
      <description>If you really want to do this, it just might be possible but in order to do this you would have to download the source and compile/link a statically linked version and put in in /sbin while the dynamically linked pre-compiled version would remain in /usr/bin. I would then knock down to single-user with only / mounted and test it by invoking /sbin/bash from /sbin/sh. If that works, you should then be able to safely make bash the root shell. I still don't think that this is a good idea but it should be possible if you are really stubborn and wish to do this.&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jun 2002 15:15:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741040#M67674</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-06-10T15:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741041#M67675</link>
      <description>As Pete mentioned, the default /sbin/sh POSIX shell probably has the "autocomplete feature" you want.&lt;BR /&gt;&lt;BR /&gt;If not, please describe what exactly you mean by "autocomplete feature". If /sbin/sh indeed  does not have that, we can give you a *safe* method for giving root a bash shell during normal operation.</description>
      <pubDate>Tue, 11 Jun 2002 10:51:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741041#M67675</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-06-11T10:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741042#M67676</link>
      <description>Luiz,&lt;BR /&gt;&lt;BR /&gt;After you have logged in as root, simply type in either the path to "bash" or "bash" if it's in your PATH variable.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 11 Jun 2002 10:54:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741042#M67676</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-06-11T10:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741043#M67677</link>
      <description>The sh shell is not Bourne in HP-UX 10 and higher, it is the POSIX shell (just like bash and ksh). However, it has some security features and one is that it does NOT assume what the shell history file will be (for root).&lt;BR /&gt;&lt;BR /&gt;To get filename completion (ESC-ESC or auto-completion) and also command stack recall (ESC-K, etc), put this line into /etc/profile:&lt;BR /&gt;&lt;BR /&gt;export HISTFILE-$HOME/.sh_history&lt;BR /&gt;&lt;BR /&gt;This should be set for ksh and BASH anyways, but now it enables all users that run POSIX shells (/sbin/sh, /usr/bin/sh, /usr/bin/ksh and so on) to have command recall and filename completion.</description>
      <pubDate>Tue, 11 Jun 2002 11:02:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741043#M67677</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-06-11T11:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741044#M67678</link>
      <description>I think Bill meant&lt;BR /&gt;export HISTFILE=$HOME/.sh_history &lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 11 Jun 2002 11:59:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741044#M67678</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-06-11T11:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: default shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741045#M67679</link>
      <description>You could set up a pseudo root account that uses bash.&lt;BR /&gt;&lt;BR /&gt;Marty</description>
      <pubDate>Tue, 11 Jun 2002 12:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-shell/m-p/2741045#M67679</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-06-11T12:43:55Z</dc:date>
    </item>
  </channel>
</rss>

