<?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: Regarding shell for root in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867854#M706579</link>
    <description>Hi Suraj,&lt;BR /&gt;&lt;BR /&gt;If you are booting in single user mode /usr is not mounted, the only filesytem mounted is / therefore you need the root shell to be /sbin/sh.&lt;BR /&gt;&lt;BR /&gt;If you need to boot in lvm maintenance mode / is  mounted as /dev/root. To avoid problems you need to shutdown from maintenance mode with shutdown -r instead of going to multi user mode directly.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Robert-Jan&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Oct 2004 02:38:13 GMT</pubDate>
    <dc:creator>Robert-Jan Goossens_1</dc:creator>
    <dc:date>2004-10-28T02:38:13Z</dc:date>
    <item>
      <title>Regarding shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867853#M706578</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;I need  a simple sollution from GURUs.&lt;BR /&gt;I all of you know the shell for root should be from /sbin only not from /usr/bin.&lt;BR /&gt;This is needed as system may give problem is you are booting in single user mode as /usr is by default is mounted.Please correct if wrong. Now my question is&lt;BR /&gt;&lt;BR /&gt;1) Which are file systems by defalut mounted in case of single user mode.. I can not test on my prduction server.. I heard some times the root is mounted as /dev/root instead on\f /dev/vg00/lvol1 in case of single user mode. if yes why ..Please help&lt;BR /&gt;2)If I want the shell of root to be from /usr/bin when the system is booting other than single user mode, what change i have to make in the /etc/profile or .profile or in case of Cshell also.&lt;BR /&gt;&lt;BR /&gt;Hope there is no confusion and  I will get the answer.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Suraj</description>
      <pubDate>Thu, 28 Oct 2004 02:25:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867853#M706578</guid>
      <dc:creator>SYS ADMIN_7</dc:creator>
      <dc:date>2004-10-28T02:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867854#M706579</link>
      <description>Hi Suraj,&lt;BR /&gt;&lt;BR /&gt;If you are booting in single user mode /usr is not mounted, the only filesytem mounted is / therefore you need the root shell to be /sbin/sh.&lt;BR /&gt;&lt;BR /&gt;If you need to boot in lvm maintenance mode / is  mounted as /dev/root. To avoid problems you need to shutdown from maintenance mode with shutdown -r instead of going to multi user mode directly.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Robert-Jan&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Oct 2004 02:38:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867854#M706579</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2004-10-28T02:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867855#M706580</link>
      <description>When the system was previously booted into lvm maintenance mode the / file system gets mounted as /dev/root.&lt;BR /&gt;&lt;BR /&gt;To resolve  this you can do a&lt;BR /&gt;#mv /etc/mnttab /etc/mnttab.org&lt;BR /&gt;#mount -a&lt;BR /&gt;&lt;BR /&gt;Regarding the shell for root user,the root users shell should be /sbin/sh.do not change that.&lt;BR /&gt;&lt;BR /&gt;Incase you want the root user to use a different shell during login add&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ksh to the last line of the $HOME/.profile file of the root user.</description>
      <pubDate>Thu, 28 Oct 2004 02:39:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867855#M706580</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2004-10-28T02:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867856#M706581</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;in single user mode (hpux -is) you have mounted:&lt;BR /&gt;/ on /dev/vg00/lvol3 &lt;BR /&gt;/stand on /dev/vg00/lvol1 &lt;BR /&gt;</description>
      <pubDate>Thu, 28 Oct 2004 02:39:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867856#M706581</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2004-10-28T02:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867857#M706582</link>
      <description>Hi Suraj,&lt;BR /&gt;&lt;BR /&gt;1. If there are no issues (like fsck successful etc.,) with the filesystems, then / and /stand will be mounted in singleuser mode. If there is a problem where / is not mountable, then it's pseudo device /dev/root is mounted as a precautionary measure. &lt;BR /&gt;&lt;BR /&gt;2. Use .profile rather than /etc/profile as it affects all the users that are using ksh. .cshrc for C-shell doesn't play a role here as root's shell will be /sbin/sh by default.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 28 Oct 2004 02:42:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867857#M706582</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-28T02:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867858#M706583</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;Thanks a lot&lt;BR /&gt;&lt;BR /&gt;TGM Thanks for the nice trick..&lt;BR /&gt;However, if i want to to repat the previous commands using Esc K combination its not happening.&lt;BR /&gt;&lt;BR /&gt;Can u please tell why.. Give some briefs if possible&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Suraj</description>
      <pubDate>Thu, 28 Oct 2004 04:20:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867858#M706583</guid>
      <dc:creator>SYS ADMIN_7</dc:creator>
      <dc:date>2004-10-28T04:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867859#M706584</link>
      <description>Hi,&lt;BR /&gt;the main difference is /usr/bin/ksh is dynamicaly linked...&lt;BR /&gt;I have seen other sysadmins struggle with they system when had to do some easy maintenace task because they put in /etc/passwd /usr/bin/ksh...&lt;BR /&gt;An example? Without Online-JFS having to extend /var...&lt;BR /&gt;&lt;BR /&gt;So for beeing on the safe side, typing after you log on the shell you want to use isnt that bad....&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Thu, 28 Oct 2004 04:29:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867859#M706584</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2004-10-28T04:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867860#M706585</link>
      <description>To use Esc-K means you are using ksh, if it knows of you HISTORY file (in .profile) then if you are not using a .kshrc (Because you did what I said previously) then just type set -o vi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Thu, 28 Oct 2004 04:40:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867860#M706585</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2004-10-28T04:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding shell for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867861#M706586</link>
      <description>Hi Victor&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;&lt;BR /&gt;I am closing this thread..&lt;BR /&gt;Once again thnaks all who helped me..&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Suraj</description>
      <pubDate>Thu, 28 Oct 2004 04:54:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-shell-for-root/m-p/4867861#M706586</guid>
      <dc:creator>SYS ADMIN_7</dc:creator>
      <dc:date>2004-10-28T04:54:05Z</dc:date>
    </item>
  </channel>
</rss>

