{"id":194,"date":"2011-06-15T17:30:49","date_gmt":"2011-06-15T22:30:49","guid":{"rendered":"http:\/\/www.hpux.ws\/?p=194"},"modified":"2011-06-15T17:30:49","modified_gmt":"2011-06-15T22:30:49","slug":"why-hp-ux-root-shell-needs-to-be-sbinsh","status":"publish","type":"post","link":"https:\/\/www.hpux.ws\/?p=194","title":{"rendered":"Why HP-UX root shell needs to be \/sbin\/sh"},"content":{"rendered":"<p>Thanks to Jibn Antony of the Best Buy IDC team for validating.<\/p>\n<p>So who cares what the root shell is? You do if you try to boot your system into single user mode with root shell changed to a shared executable shell, you will find out the hard way. The system won&#8217;t boot.<\/p>\n<div>\n<div id=\"ColorBandedcontent\">\n<div id=\"imcontent\">\n<div><a title=\"mailto:root@dxd22hxd\" href=\"mailto:root@dxd22hxd\">root@dxd22hxd<\/a># ls -l \/bin\/ksh<br \/>\n-r-xr-xr-x\u00a0\u00a0 2 bin\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 bin\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 538632 Nov 12\u00a0 2007 \/bin\/ksh*<br \/>\n<a title=\"mailto:root@dxd22hxd\" href=\"mailto:root@dxd22hxd\">root@dxd22hxd<\/a># ldd \/bin\/ksh<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 libnsl.so.1 =&gt;\u00a0 \/usr\/lib\/hpux32\/libnsl.so.1<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 libxti.so.1 =&gt;\u00a0 \/usr\/lib\/hpux32\/libxti.so.1<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 libc.so.1 =&gt;\u00a0\u00a0\u00a0 \/usr\/lib\/hpux32\/libc.so.1<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 libc.so.1 =&gt;\u00a0\u00a0\u00a0 \/usr\/lib\/hpux32\/libc.so.1<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 libxti.so.1 =&gt;\u00a0 \/usr\/lib\/hpux32\/libxti.so.1<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 libdl.so.1 =&gt;\u00a0\u00a0 \/usr\/lib\/hpux32\/libdl.so.1<br \/>\n<a title=\"mailto:root@dxd22hxd\" href=\"mailto:root@dxd22hxd\">root@dxd22hxd<\/a># ldd \/sbin\/sh<br \/>\nldd: &#8220;\/sbin\/sh&#8221; is not a shared executable.<br \/>\n<a title=\"mailto:root@dxd22hxd\" href=\"mailto:root@dxd22hxd\">root@dxd22hxd<\/a># ls -l \/sbin\/sh<br \/>\n-r-xr-xr-x\u00a0\u00a0 1 bin\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 bin\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1402600 Oct 23\u00a0 2007 \/sbin\/sh*<\/div>\n<div>Note that \/bin\/ksh requires \/usr to be mounted which is not the case with single user or lv maintenance mode.<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Thanks to Jibn Antony of the Best Buy IDC team for validating. So who cares what the root shell is? You do if you try to boot your system into single user mode with root shell changed to a shared executable shell, you will find out the hard way. The system won&#8217;t boot. root@dxd22hxd# ls [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kadence_starter_templates_imported_post":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-194","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/194"}],"collection":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=194"}],"version-history":[{"count":0,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/194\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}