<?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: no shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174767#M161788</link>
    <description>We fixed the problem rebooting in single user mode and temporarily changing the passwd permission bits, allowing passwd modification.&lt;BR /&gt;We entered as normal user in init 3 running level and supplied right shell value in passwd. &lt;BR /&gt;Then re-rebooted the system normally.&lt;BR /&gt;We do apologise for our english and thanks a lot for your help.&lt;BR /&gt;</description>
    <pubDate>Tue, 27 Jan 2004 05:55:04 GMT</pubDate>
    <dc:creator>Damiano Angelo</dc:creator>
    <dc:date>2004-01-27T05:55:04Z</dc:date>
    <item>
      <title>root: no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174761#M161782</link>
      <description>We can't login with root user because in the passwd file there is a wrong shell specification: &lt;BR /&gt;root:/y.QL0TL6uJH.:0:3::/:/sbin/ksh&lt;BR /&gt;(/sbin/ksh doesn't exist).&lt;BR /&gt;&lt;BR /&gt;trying to login we receive the following message: "no shell"&lt;BR /&gt;&lt;BR /&gt;We have:&lt;BR /&gt;/etc/passwd -r--r--r--   1 root       sys&lt;BR /&gt;/etc        dr-xr-xr-x  33 bin        bin &lt;BR /&gt;/sbin       dr-xr-xr-x  13 bin        bin &lt;BR /&gt;&lt;BR /&gt;We cannot login using bin or adm or sys users because system asks for password we don't know.&lt;BR /&gt;&lt;BR /&gt;It seems to be only root user with 'root' privileges.&lt;BR /&gt;&lt;BR /&gt;Is there a method to bypass the problem or to have root privileges with a another user???&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 27 Jan 2004 04:17:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174761#M161782</guid>
      <dc:creator>Damiano Angelo</dc:creator>
      <dc:date>2004-01-27T04:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: root: no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174762#M161783</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What you can do is login as normal user and su to root ( without - ). If this does not work you could try restoring a backup of /etc/passwd with the correct shell, become root and put back the original shell.&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Tue, 27 Jan 2004 04:22:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174762#M161783</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2004-01-27T04:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: root: no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174763#M161784</link>
      <description>If you boot into single user mode you should be able to edit the /etc/passwd file and change ksh to sh.&lt;BR /&gt;&lt;BR /&gt;Instructions for accessing single user mode differ for different OS versions, so if you don't know what to do let us know more details about your system.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Tue, 27 Jan 2004 04:23:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174763#M161784</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2004-01-27T04:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: root: no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174764#M161785</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;if you boot into single user mode (interrupt boot process, boot pri, hpux -is (boot)then you should be able to change the entry in /etc/passwd from ksh to sh.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Tue, 27 Jan 2004 04:32:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174764#M161785</guid>
      <dc:creator>Franky_1</dc:creator>
      <dc:date>2004-01-27T04:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: root: no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174765#M161786</link>
      <description>To avoid this kind of problems in the future, it's better to use commands such as chsh/chfn/passwd rather than editing the /etc/passwd directly.</description>
      <pubDate>Tue, 27 Jan 2004 05:11:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174765#M161786</guid>
      <dc:creator>Marc Roger</dc:creator>
      <dc:date>2004-01-27T05:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: root: no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174766#M161787</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I addition to Makrs command, you could use vipw in the future for editing the passwd file. It also checks the result.&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Tue, 27 Jan 2004 05:27:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174766#M161787</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2004-01-27T05:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: root: no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174767#M161788</link>
      <description>We fixed the problem rebooting in single user mode and temporarily changing the passwd permission bits, allowing passwd modification.&lt;BR /&gt;We entered as normal user in init 3 running level and supplied right shell value in passwd. &lt;BR /&gt;Then re-rebooted the system normally.&lt;BR /&gt;We do apologise for our english and thanks a lot for your help.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jan 2004 05:55:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174767#M161788</guid>
      <dc:creator>Damiano Angelo</dc:creator>
      <dc:date>2004-01-27T05:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: root: no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174768#M161789</link>
      <description>Ciao Damiano,&lt;BR /&gt;&lt;BR /&gt;dato che i ragazzi dell'ITRC ti hanno aiutato e suggerito come risolvere il problema potresti assegnare loro dei punti?&lt;BR /&gt;Benvenuto nei forum di ITRC! ;-)&lt;BR /&gt;&lt;BR /&gt;Buona giornata!&lt;BR /&gt;Ettore&lt;BR /&gt;&lt;BR /&gt;P.S.: Perfavore non assegnare punti a questo mio post...&lt;BR /&gt;&lt;BR /&gt;Translate in English:&lt;BR /&gt;since ITRC guys gave you suggestions about how to solve the problem, could you assign them points?&lt;BR /&gt;Welcome in ITRC forum!&lt;BR /&gt;&lt;BR /&gt;Have a nice day!&lt;BR /&gt;Ettore&lt;BR /&gt;&lt;BR /&gt;P.S.: please no point for me in this post...</description>
      <pubDate>Tue, 27 Jan 2004 06:06:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174768#M161789</guid>
      <dc:creator>Fabio Ettore</dc:creator>
      <dc:date>2004-01-27T06:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: root: no shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174769#M161790</link>
      <description>Very important: don't change root's shell. /sbin/sh is *NOT* the Bourne shell like other versions of Unix. It is the POSIX shell, a superset of ksh. So the features that you like in ksh (and BASH, both are POSIX standard) are found in /sbin/sh (and for ordinary users, /usr/bin/sh).</description>
      <pubDate>Tue, 27 Jan 2004 08:33:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-no-shell/m-p/3174769#M161790</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-01-27T08:33:06Z</dc:date>
    </item>
  </channel>
</rss>

