<?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 has no shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513562#M218635</link>
    <description>Unless you have a root (UID=0) session already open, can restore from backup, you will need to reboot the server into single user mode.</description>
    <pubDate>Tue, 29 Mar 2005 12:45:35 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2005-03-29T12:45:35Z</dc:date>
    <item>
      <title>root has no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513557#M218630</link>
      <description>A person left and I ended up geting stuck with maintaining the server. When I try to login as root I get kicked off the server with a message saying No shell. I looked at the passwd file and the entry for root is root:x:0:3::/:/sbin/ksh &lt;BR /&gt;&lt;BR /&gt;Is there any way I can change the root password entry without having to bring down the server. This is a production server.</description>
      <pubDate>Tue, 29 Mar 2005 12:31:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513557#M218630</guid>
      <dc:creator>Juan Gonzalez_2</dc:creator>
      <dc:date>2005-03-29T12:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: root has no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513558#M218631</link>
      <description>If you have a backup, which has the /etc/passwd with:&lt;BR /&gt;&lt;BR /&gt;root:x:0:3::/:/sbin/sh&lt;BR /&gt;&lt;BR /&gt;Then you could restore it - else you will have to boot to single user mode....&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Mar 2005 12:39:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513558#M218631</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-03-29T12:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: root has no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513559#M218632</link>
      <description>If you have already logged in as root then change root entry in passwd file with /sbin/sh&lt;BR /&gt;or login as normal user and then run su , without (-)&lt;BR /&gt;&lt;BR /&gt;If this does not work then you have boot server  in single user mode and modify /etc/passwd file.&lt;BR /&gt;&lt;BR /&gt;run vipw to see if passwd file is OK.&lt;BR /&gt;&lt;BR /&gt;Goodluck&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Tue, 29 Mar 2005 12:39:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513559#M218632</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2005-03-29T12:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: root has no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513560#M218633</link>
      <description>Look for another user who has a user number of zero. It is possible the previous admin left a backdoor.&lt;BR /&gt; &lt;BR /&gt;Also see if "sudo" is available. It is possible the previous admin had setup some tools for non-root users.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Tue, 29 Mar 2005 12:41:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513560#M218633</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-03-29T12:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: root has no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513561#M218634</link>
      <description>hi juan&lt;BR /&gt;is ksh found in this path?!&lt;BR /&gt;&lt;BR /&gt;try /usr/bin/ksh (default path for ksh in HP)&lt;BR /&gt;or &lt;BR /&gt;/sbin/sh  (but you will logon in shell sh)&lt;BR /&gt;&lt;BR /&gt;and what is your OS?</description>
      <pubDate>Tue, 29 Mar 2005 12:42:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513561#M218634</guid>
      <dc:creator>kamal_15</dc:creator>
      <dc:date>2005-03-29T12:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: root has no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513562#M218635</link>
      <description>Unless you have a root (UID=0) session already open, can restore from backup, you will need to reboot the server into single user mode.</description>
      <pubDate>Tue, 29 Mar 2005 12:45:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513562#M218635</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-03-29T12:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: root has no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513563#M218636</link>
      <description>If you every think about changing the root shell. Think again.&lt;BR /&gt;&lt;BR /&gt;Can't do that, makes the system unstable. &lt;BR /&gt;&lt;BR /&gt;Boot to single user mode.&lt;BR /&gt;&lt;BR /&gt;Interupt at the 10 second prompt after a hard boot, at the console&lt;BR /&gt;&lt;BR /&gt;bo pri&lt;BR /&gt;&lt;ENTER&gt;&lt;BR /&gt;Y (Yes, Interact)&lt;BR /&gt;&lt;ENTER&gt;&lt;BR /&gt;&lt;BR /&gt;hpux -is&lt;BR /&gt;&lt;BR /&gt;after it boots&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mount /var&lt;BR /&gt;mount /usr&lt;BR /&gt;&lt;BR /&gt;vi /etc/passwd&lt;BR /&gt;&lt;BR /&gt;Fix it.&lt;BR /&gt;&lt;BR /&gt;NEVER let anyone change the root shell again.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/ENTER&gt;&lt;/ENTER&gt;</description>
      <pubDate>Tue, 29 Mar 2005 12:54:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513563#M218636</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-03-29T12:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: root has no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513564#M218637</link>
      <description>Thanks for the information. Looks like I am going to have to reboot the server.</description>
      <pubDate>Tue, 29 Mar 2005 13:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513564#M218637</guid>
      <dc:creator>Juan Gonzalez_2</dc:creator>
      <dc:date>2005-03-29T13:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: root has no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513565#M218638</link>
      <description>If you have root login at the moment on the server, (or alternate root), I think you can link /sbin/ksh to /sbin/sh&lt;BR /&gt;&lt;BR /&gt;ln -s /sbin/sh /sbin/ksh&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Tue, 29 Mar 2005 13:34:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513565#M218638</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-03-29T13:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: root has no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513566#M218639</link>
      <description>There is no such file: /sbin/ksh Someone thought this might work but never tested it. You cannot ever have root using a shell that uses shared libraries (programs in /usr/bin use shared libraries). The reason is that in single user mode, there is no /usr directory mounted so neither the program nor the /usr/lib libraries are available. The ONLY entry that can be used for root is /sbin/sh (which is NOT the Bourne shell).&lt;BR /&gt; &lt;BR /&gt;Try using su root (not su - root) to login. This may give you the current shell but with root privilege. This situation is one of the many reasons that you need to install and use sudo in order to fix problems without having to login as root.</description>
      <pubDate>Tue, 29 Mar 2005 22:37:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513566#M218639</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-03-29T22:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: root has no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513567#M218640</link>
      <description>This was probably done to allow ftp to root. If you need to ftp to root, copy ksh into /sbin. Do an actual copy. Do not soft link it as the original is in /usr which does not mount in single user mode.&lt;BR /&gt;&lt;BR /&gt;This, of course assumes you got back in. I had the same thing happen to me. There was another user with UID 0 so I was able to get back in.</description>
      <pubDate>Tue, 29 Mar 2005 23:50:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513567#M218640</guid>
      <dc:creator>John Atkinson_2</dc:creator>
      <dc:date>2005-03-29T23:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: root has no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513568#M218641</link>
      <description>As mentioned, /usr/bin/ksh is a shared library executable. Everything in /sbin must be in archived library format so copying ksh to /sbin will solve the current problem without a reboot, but /sbin is only for archived library programs. Of course, in order to copy ksh to /sbin, you'll need to be root.</description>
      <pubDate>Wed, 30 Mar 2005 08:42:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513568#M218641</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-03-30T08:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: root has no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513569#M218642</link>
      <description>#########################################&lt;BR /&gt;If this was done to allow ftp access for root, then this would be the ideal way of fixing it -&lt;BR /&gt;#########################################&lt;BR /&gt;&lt;BR /&gt;ftp-get /bin/sh  (binary!)&lt;BR /&gt;cd /sbin&lt;BR /&gt;ftp-put sh with remote name ksh (binary!)&lt;BR /&gt;chmod 755 ksh&lt;BR /&gt;&lt;BR /&gt;login, chsh to /bin/sh, test login again, rm /sbin/ksh&lt;BR /&gt;put root back into /etc/ftpusers to block login.&lt;BR /&gt;&lt;BR /&gt;Anyone will be pleased to help You find another solution for the issue that would have led to this shell-switch.&lt;BR /&gt;&lt;BR /&gt;########### &lt;BR /&gt;and if it was not done for that reason, and You don't get in via ftp then yes, reboot and change shells, but before booting up again ensure there are *tested* backups of the system.&lt;BR /&gt;I'd get very suspicious in that situation You're in and would probably use diagnostics to make copies of the disks in vg00 or something like that, before running the startup scripts.&lt;BR /&gt;If the system comes up fine, at least get the 'rkhunter' perl script and hp-ux bastille and search for backdoors and rootkits.&lt;BR /&gt;&lt;BR /&gt;the shell change might have been a mistake or a very weird way of saying 'learn to be careful with the box from the beginning' or the point where You have to suspect a classical internal attack and call in authorities.</description>
      <pubDate>Wed, 30 Mar 2005 10:27:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-has-no-shell/m-p/3513569#M218642</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-03-30T10:27:56Z</dc:date>
    </item>
  </channel>
</rss>

