<?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's shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775972#M942741</link>
    <description>No is the simple answer !&lt;BR /&gt;You must use the /sbin/sh</description>
    <pubDate>Tue, 30 Jul 2002 20:15:07 GMT</pubDate>
    <dc:creator>melvyn burnard</dc:creator>
    <dc:date>2002-07-30T20:15:07Z</dc:date>
    <item>
      <title>root's shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775971#M942740</link>
      <description>i have always seen /sbin/sh which i think is the POSIX shell. can i use something like /bin/ksh or anything else? only bad thing that comes to mind is that in single user mode /usr is not mounted since most often it is its own file system. any other issues?</description>
      <pubDate>Tue, 30 Jul 2002 20:11:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775971#M942740</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2002-07-30T20:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: root's shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775972#M942741</link>
      <description>No is the simple answer !&lt;BR /&gt;You must use the /sbin/sh</description>
      <pubDate>Tue, 30 Jul 2002 20:15:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775972#M942741</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2002-07-30T20:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: root's shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775973#M942742</link>
      <description>Hi Marc,&lt;BR /&gt;&lt;BR /&gt; AFTER boot you can change it to whatever you please. But it MUST be /sbin/sh in the /etc/passwd entry for root for the reason you pointed out, /usr is not mounted in single-user mode as well link lib issues. The system will refuse to boot if root's entry in the passwd file is anything other than /sbin/sh.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 30 Jul 2002 20:17:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775973#M942742</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-07-30T20:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: root's shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775974#M942743</link>
      <description>Keep it at /sbin/sh or you will see this problem as well .. (apart from the "bad shell" error when system boots up).&lt;BR /&gt;&lt;A href="http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000058669638" target="_blank"&gt;http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000058669638&lt;/A&gt;</description>
      <pubDate>Tue, 30 Jul 2002 20:17:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775974#M942743</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-07-30T20:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: root's shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775975#M942744</link>
      <description>Well, in principle, you could use any shell you like BUT you must play but the rules. First, whatever you use must be listed in /etc/shells.&lt;BR /&gt;&lt;BR /&gt;And second, you must have a statically linked version of the shell so that you have a shell when only / is mounted. Having said this, it would be really dumb not to use /sbin/sh (the statically linked version of the POSIX shell).&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jul 2002 21:06:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775975#M942744</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-07-30T21:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: root's shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775976#M942745</link>
      <description>You must use /sbin/sh if you want your system to boot correctly.</description>
      <pubDate>Tue, 30 Jul 2002 21:31:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775976#M942745</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-07-30T21:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: root's shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775977#M942746</link>
      <description>with 5 out of 5 pros saying the same thing, i will not play around with anything else but /sbin/sh in /etc/passwd. if another shell is needed/desired for the root user then it will be done on the fly ...thx</description>
      <pubDate>Tue, 30 Jul 2002 22:05:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775977#M942746</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2002-07-30T22:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: root's shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775978#M942747</link>
      <description>The first question I ask is why? You should never login as root except for system administration. And ksh *is* a POSIX shell. HP's POSIX shell is yet another implementation of the POSIX standard, just like bash. (one little nit: /bin doesn't exist, just like Solaris. /bin is a temporary symlink to be used in the transition process--now more than 7 years old. The actual path is: /usr/bin/ksh)&lt;BR /&gt;&lt;BR /&gt;HP's POSIX shell is actually a superset of ksh, with features such as ulimit -a which is not available in ksh. Most users don't want sh as a shell because it (unfortunately) looks like a Bourne shell, which significantly limited compared to POSIX shells. For the average shell user and script writer, the two shells are virtually identical.&lt;BR /&gt;&lt;BR /&gt;One difference that's easy to configure is filename completion and command stack recall. For ksh, the default location is $HOME/.sh_history, but for HP's POSIX shell, there is no default for root so it must be explicitly defined. Since this definition is exactly the same env variable for the POSIX shell, ksh and even bash, the change is easy. Add this to /etc/profile:&lt;BR /&gt;&lt;BR /&gt;export HISTFILE=$HOME/.sh_history&lt;BR /&gt;&lt;BR /&gt;and now all your favorite ksh command stack and and filename completion features will work.</description>
      <pubDate>Tue, 30 Jul 2002 22:22:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775978#M942747</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-07-30T22:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: root's shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775979#M942748</link>
      <description>Bill Hassell, as usual, makes good points.  Something we do to avoid tricking up the true "root" environment is create individual uid 0 accounts for sysadmins (aroot, broot, croot, etc.).  This allows customization of the logins as well as some measure of accountability via wtmp.  We can always su to root if we need to be the real thing.</description>
      <pubDate>Wed, 31 Jul 2002 13:18:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775979#M942748</guid>
      <dc:creator>W.C. Epperson</dc:creator>
      <dc:date>2002-07-31T13:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: root's shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775980#M942749</link>
      <description>Once again Bill Hassel is our voice of sanity. I would like to elaborate on his theme of command history. What I do is add this to roots .profile and that way I can keep track of what different people have done as they have su-ed to root:&lt;BR /&gt;&lt;BR /&gt; REAL=`logname`&lt;BR /&gt;        HISTFILE=.sh_$REAL&lt;BR /&gt;        HISTSIZE=1000&lt;BR /&gt;        export HISTFILE HISTSIZE&lt;BR /&gt;&lt;BR /&gt;That way the history file is no longer .sh_history but now there is one history file for each person that su-es to root that looks like .sh_john and .sh_bill etc. By the way the HISTSIZE is number of commands retained, you may want to modify this or eliminate HISTSIZE and take the default.</description>
      <pubDate>Wed, 31 Jul 2002 15:49:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-s-shell/m-p/2775980#M942749</guid>
      <dc:creator>John Dvorchak</dc:creator>
      <dc:date>2002-07-31T15:49:23Z</dc:date>
    </item>
  </channel>
</rss>

