<?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 shell mangled in passwd file; now can't get into root user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772926#M75133</link>
    <description>SHUT the system down - hard if you have to, and boot into single user mode, then fix /etc/passwd.&lt;BR /&gt;&lt;BR /&gt;or try to create an /sbin/h shell if possible, but I doubt it.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Thu, 25 Jul 2002 18:54:41 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2002-07-25T18:54:41Z</dc:date>
    <item>
      <title>Root shell mangled in passwd file; now can't get into root user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772925#M75132</link>
      <description>The shell for root in /etc/passwd got accidentally changed from /sbin/sh to /sbin/h.  I've tried several ways to get into root id but so far all have returned "no shell" error message and login stops.  Is there a way to su to root without attempting to start invalid shell?  Running HP-UX 11.00 on 712/60 workstation.</description>
      <pubDate>Thu, 25 Jul 2002 18:53:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772925#M75132</guid>
      <dc:creator>Steven W. Mills</dc:creator>
      <dc:date>2002-07-25T18:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Root shell mangled in passwd file; now can't get into root user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772926#M75133</link>
      <description>SHUT the system down - hard if you have to, and boot into single user mode, then fix /etc/passwd.&lt;BR /&gt;&lt;BR /&gt;or try to create an /sbin/h shell if possible, but I doubt it.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 25 Jul 2002 18:54:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772926#M75133</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-07-25T18:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Root shell mangled in passwd file; now can't get into root user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772927#M75134</link>
      <description>Bring the system down into single user mode and edit /etc/passwd. If you can't bring it down, can you restore from backup?&lt;BR /&gt;&lt;BR /&gt;Can you ftp to the system using root? You can copy the passwd file to another system, make the change and ftp it back.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty &lt;TALK about="" shooting="" yourself="" in="" the="" foot=""&gt;&lt;BR /&gt;&lt;BR /&gt;P.S. I usually set up a pseudo root account (username/password with UID=0) to handle problems like this. You might consider doing the same.&lt;/TALK&gt;</description>
      <pubDate>Thu, 25 Jul 2002 19:00:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772927#M75134</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-07-25T19:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Root shell mangled in passwd file; now can't get into root user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772928#M75135</link>
      <description>login as any_other_user&lt;BR /&gt;#cp /etc/passwd /tmp/passwd.mangled&lt;BR /&gt;#cp /etc/passwd /tmp/passwd&lt;BR /&gt;&lt;BR /&gt;now edit the /tmp/passwd file to correct the shell&lt;BR /&gt;&lt;BR /&gt;ftp to the same host with root&lt;BR /&gt;cd /tmp&lt;BR /&gt;lcd /etc&lt;BR /&gt;put passwd&lt;BR /&gt;bye&lt;BR /&gt;&lt;BR /&gt;I think this should work &lt;BR /&gt;Never tried though !&lt;BR /&gt;Goodluck</description>
      <pubDate>Thu, 25 Jul 2002 19:10:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772928#M75135</guid>
      <dc:creator>Jacob_2</dc:creator>
      <dc:date>2002-07-25T19:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Root shell mangled in passwd file; now can't get into root user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772929#M75136</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try to get /etc/passwd file with a ftp in ascci mode. Then modify mangled line with a text editor, so replace it with ftp (ascci)in /etc.&lt;BR /&gt;&lt;BR /&gt;Rgds</description>
      <pubDate>Thu, 25 Jul 2002 19:12:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772929#M75136</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2002-07-25T19:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Root shell mangled in passwd file; now can't get into root user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772930#M75137</link>
      <description>Thanks all!!  I couldn't FTP into system as root as that is restricted.  Getting the system to BOOT-ADMIN prompt and then to ISL prompt was the killer -- pressing/holding ESC key at the correct time.  Thanks, again.&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 25 Jul 2002 19:59:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772930#M75137</guid>
      <dc:creator>Steven W. Mills</dc:creator>
      <dc:date>2002-07-25T19:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Root shell mangled in passwd file; now can't get into root user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772931#M75138</link>
      <description>Yeah, FTP, rlogin, basically everything will fail if the /etc/passwd file is toast on the root line. The other day I was working on a system that had TWO (2) root lines in /etc/passwd. I said what the hell is with this, so I deleted the first line, not knowing that an SA had put that line in because there was something wrong with the original root line. Well I did the reboot into single user mode, vi'd the /etc/passwd file, and found that the original root line had a SPACE after /sbin/sh . That was his original problem so I removed the space, and booted the system.&lt;BR /&gt;&lt;BR /&gt;Sometimes I wonder if root should just be BUILT into the kernel.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Fri, 26 Jul 2002 10:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell-mangled-in-passwd-file-now-can-t-get-into-root-user/m-p/2772931#M75138</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-07-26T10:57:07Z</dc:date>
    </item>
  </channel>
</rss>

