<?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 root shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466622#M15841</link>
    <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;Per HP's document for 10.20, root's shell should be /sbin/sh.  But our customized environment is all the super user use Korn Shell ( which means in /etc/passwd file, the shell for root is set to: /bin/ksh).&lt;BR /&gt;&lt;BR /&gt;In order to do that, we have to boot the machine into single user mode, and do a: ln -s /sbin/sh /usr/bin/ksh. ( Because if you don't do this step, after you boot the machine, it will go to single user mode automatically and tells you " bad shell").&lt;BR /&gt;&lt;BR /&gt;I know all these steps.  But I don't understand why I am doing this. Could anybody explain to me how this thing works?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot in advance!&lt;BR /&gt;&lt;BR /&gt;Sharon</description>
    <pubDate>Wed, 22 Nov 2000 15:44:18 GMT</pubDate>
    <dc:creator>Sharon Bi</dc:creator>
    <dc:date>2000-11-22T15:44:18Z</dc:date>
    <item>
      <title>root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466622#M15841</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;Per HP's document for 10.20, root's shell should be /sbin/sh.  But our customized environment is all the super user use Korn Shell ( which means in /etc/passwd file, the shell for root is set to: /bin/ksh).&lt;BR /&gt;&lt;BR /&gt;In order to do that, we have to boot the machine into single user mode, and do a: ln -s /sbin/sh /usr/bin/ksh. ( Because if you don't do this step, after you boot the machine, it will go to single user mode automatically and tells you " bad shell").&lt;BR /&gt;&lt;BR /&gt;I know all these steps.  But I don't understand why I am doing this. Could anybody explain to me how this thing works?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot in advance!&lt;BR /&gt;&lt;BR /&gt;Sharon</description>
      <pubDate>Wed, 22 Nov 2000 15:44:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466622#M15841</guid>
      <dc:creator>Sharon Bi</dc:creator>
      <dc:date>2000-11-22T15:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466623#M15842</link>
      <description>Hi Sharon&lt;BR /&gt;&lt;BR /&gt;You have solved the problem yourself - as per HP documebntation root's shell should /sbin/sh which you stated.&lt;BR /&gt;&lt;BR /&gt;Do not change the root shell and you will not have the problem.&lt;BR /&gt;&lt;BR /&gt;Your customised environment should not be configured to require that the root shell be any other that /sbin/sh.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Nov 2000 16:01:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466623#M15842</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2000-11-22T16:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466624#M15843</link>
      <description>The reason being under sbin , contains static binaries , i.e. does not require other programs involved in the include statement when compiled, so in case of a DR it can be mounted without depending on other files. Hence , it is not changed .&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Wed, 22 Nov 2000 16:08:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466624#M15843</guid>
      <dc:creator>Devbinder Singh Marway</dc:creator>
      <dc:date>2000-11-22T16:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466625#M15844</link>
      <description>Sorry for the confusion.  I think my questions are:&lt;BR /&gt;1) why root has to use /sbin/sh?&lt;BR /&gt;2) By the steps I mentioned , I am able to login as root using Korn Shell without problem.  I want to know why by doing that symbolic link i can have what ever shell for root?  ( Because i was just folowing some document from other people.)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Nov 2000 16:11:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466625#M15844</guid>
      <dc:creator>Sharon Bi</dc:creator>
      <dc:date>2000-11-22T16:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466626#M15845</link>
      <description>Don't change the root shell to anything other than /sbin/sh.  This can cause the system to be unbootable.  As the /usr mount is not avaiable at first boot, your link to /usr/bin/ksh will fail.&lt;BR /&gt;&lt;BR /&gt;If you want root to use ksh on interactive shells, you can modify the /.profile to test if the shell is interactive and the fire up ksh.</description>
      <pubDate>Wed, 22 Nov 2000 16:19:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466626#M15845</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2000-11-22T16:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466627#M15846</link>
      <description>Hi Sharon,&lt;BR /&gt;&lt;BR /&gt;With your command ln -s /sbin/sh /usr/bin/ksh issued in single user mode, most probably with /usr unmounted (otherwise it would complain because /usr/bin/ksh already exists)&lt;BR /&gt;you create a symbolic link on the / filesystem.&lt;BR /&gt;&lt;BR /&gt;That one will be hidden when you go multi-user and mount /usr.&lt;BR /&gt;&lt;BR /&gt;The funny thing is that your newly created /usr/bin/ksh is totally equivalent to /sbin/sh as this is the file it points to.&lt;BR /&gt;As far as you're single user, it's just the same shell (posix).&lt;BR /&gt;&lt;BR /&gt;Whe root logs in in multi-user state, he's got a korn shell.&lt;BR /&gt;&lt;BR /&gt;The reason why root needs the /sbin/sh shell is that, as it as been said before, this one has been compiled with static libraries.&lt;BR /&gt;If it was compiled with dynamic libs instead, it won't find those libs in single-user state as the filesystems where those libraries reside isn't mounted yet.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Nov 2000 16:26:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466627#M15846</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-22T16:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466628#M15847</link>
      <description>Sharon,&lt;BR /&gt;&lt;BR /&gt;I totally agree with Tom and Dan.  I would suggest that you modify your ~/.profile so that the last line does an exec /usr/bin/ksh (if you must absolutely use the korn shell... mind you most of the features of ksh are supported by posix-sh)&lt;BR /&gt;&lt;BR /&gt;#echo "exec /usr/bin/ksh" &amp;gt;&amp;gt; ~/.profile&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Nov 2000 16:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466628#M15847</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-11-22T16:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466629#M15848</link>
      <description>Thanks for everybody.  I am one more question:&lt;BR /&gt;&lt;BR /&gt;Does this mean when a system boots, it goes to single user mode first?  And then change to multi-user mode?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot!&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Nov 2000 16:53:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466629#M15848</guid>
      <dc:creator>Sharon Bi</dc:creator>
      <dc:date>2000-11-22T16:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466630#M15849</link>
      <description>Sharon:&lt;BR /&gt;&lt;BR /&gt;When the system boots, it goes straight to the level specified in your /etc/inittab under initdefault.  look for initdefault in this file and the number associated with it eg.&lt;BR /&gt;&lt;BR /&gt;init:3:initdefault:&lt;BR /&gt;&lt;BR /&gt;says that it should run at run level 3.&lt;BR /&gt;As it happens in order to reach run level 3, it has to execute scripts in order - these scripts are found in /sbin/init.d/rcX.d   (where X is the run level)&lt;BR /&gt;and are typically a superset of the scripts in run level one.&lt;BR /&gt;&lt;BR /&gt;To answer your question, theoretically, it does go through single user mode to get to the final run level.&lt;BR /&gt;&lt;BR /&gt;there is a good document on your server in &lt;BR /&gt;/usr/share/doc called start_up.txt explaining  the startup process - it is well worth a read.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck.</description>
      <pubDate>Wed, 22 Nov 2000 17:06:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466630#M15849</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-11-22T17:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466631#M15850</link>
      <description>Someone slap me if what I'm about to suggest is thoroughly inadvisable or otherwise naughty.&lt;BR /&gt;&lt;BR /&gt;Why not create a second account for UID 0, with the same home directory as 'root,' but with a different name and a different shell? I have a UID 0 account named 'rootb' which uses the Bourne-Again shell (bash). You could create a 'rootk' account--or whatever--and specify the Korn shell instead. You can use the two accounts interchangeably however you like, since they have the same UID and home directory. And you don't have to worry about screwing up the 'real' root account.&lt;BR /&gt;&lt;BR /&gt;This is usually almost the very first thing I do when I get my hands on a new system. I also move root's home directory to /root (which is NOT on a mounted filesystem). Otherwise, after time, you get that unsightly buildup of dot-files and other garbage at the root of the filesystem--yuck!</description>
      <pubDate>Wed, 22 Nov 2000 19:55:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466631#M15850</guid>
      <dc:creator>Kevin Ernst</dc:creator>
      <dc:date>2000-11-22T19:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466632#M15851</link>
      <description>You could do that, but you are just asking for security problems...</description>
      <pubDate>Wed, 22 Nov 2000 20:14:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466632#M15851</guid>
      <dc:creator>Paul Frederiksen</dc:creator>
      <dc:date>2000-11-22T20:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466633#M15852</link>
      <description>I thought about that initially, but what *really* are the security implications of doing that? If the passwords are well-chosen to begin with, and synchronized between the two accounts, what's the diff? There's no prize for cracking BOTH accounts--you just get root access either way.</description>
      <pubDate>Wed, 22 Nov 2000 20:25:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466633#M15852</guid>
      <dc:creator>Kevin Ernst</dc:creator>
      <dc:date>2000-11-22T20:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466634#M15853</link>
      <description>Kevin:&lt;BR /&gt;&lt;BR /&gt;I think that multiple root accounts are not adviseable in the same way that you would not you would not two doors to a safe!  chances are higher that one of them will get compromised... then you've been had.  Usually, it is easier to keep a hawk-eye on just one account.. than two (or three if someone can slip one in) besides backdoors are not a very good idea - an unethical sa who quits his job can own that machine. In short, minimize the chances of breaching your machine.&lt;BR /&gt;&lt;BR /&gt;my 2c</description>
      <pubDate>Wed, 22 Nov 2000 20:45:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466634#M15853</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-11-22T20:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466635#M15854</link>
      <description>SOme addtional comments: &lt;BR /&gt;&lt;BR /&gt;/sbin/sh (the statically linked POSIX shell) is virtually indistinguishable from the Korn shell.  While there are very small differences, for the majority of scripts and commands, the POSIX shell is a superset of ksh.&lt;BR /&gt;&lt;BR /&gt;But more importantly, the POSIX shell has security features that are designed for root usage that are not present in ksh.  Keep in mind that in single user mode (and this is *NOT* init s), the /usr directory is not mou8nted so there is no such file as /usr/bin/ksh.  The shells in /usr/bin use shared libraries and will not function in single user mode.&lt;BR /&gt;&lt;BR /&gt;You can prove this to yourse3lf by copying /usr/bin/ksh to /sbin and then rebooting into single user mode.  Do this by interrupting the boot process and use hpux -is to reach *TRUE* single user mode.  To verify this, type: mount and you not see /usr.  If you do, you are not in single user mode.&lt;BR /&gt;&lt;BR /&gt;But the most important reason to use the POSIX shell is that it will handle *all* the needs of the root user with security.  There is no issue with shell scripts.  All shell scripts should be written with:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;as you desire.  The root user should *ONLY* be used when absolutely necessary! It is far too easy to make a mistake that can destroy the system when everything is done as root.&lt;BR /&gt;&lt;BR /&gt;And concerning multiple root user ID's:&lt;BR /&gt;&lt;BR /&gt;NEVER DO IT!&lt;BR /&gt;&lt;BR /&gt;First, the pwck program will complain (and that's good) because it assumes that a hacker has attacked your system.  But more likely, the casual user that logs in as billh and reads mail and creates files, etc, etc is creating havoc with your system as *ALL* protection has been removed.  And that pesky billh user keeps forgetting that he is root and does dumb things that would never be allowed as a protected user.&lt;BR /&gt;&lt;BR /&gt;Finally, a really bad thing happens when you remove the billh user and all the files owned by billh (you guessed it, all root files are removed).  Don't ever give user ID 0 to any other account.</description>
      <pubDate>Thu, 23 Nov 2000 04:06:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466635#M15854</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2000-11-23T04:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466636#M15855</link>
      <description>Hi Sharon,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I fully agree with Kofi and Bill, with multiple root accounts it's exactly like having a safe with 2 or more doors.&lt;BR /&gt;You'll be asking for security problems.&lt;BR /&gt;&lt;BR /&gt;More, as you seem to have people logged in as root regularly, you're facing a risky situation. Remember that root has ALL the rights on your system and is really able to do the WORST !! &lt;BR /&gt;&lt;BR /&gt;If yourself or other users regularly need root privileges, you should use 'su' or install a utility like 'sudo' which will allow you to selectively assign root privileges for given actions only. This is a lot safer !!&lt;BR /&gt;&lt;BR /&gt;Regarding the single/multi user state of your system during boot, your system is always booting to the level mentioned as "initdefault" in your /etc/inittab file.&lt;BR /&gt;&lt;BR /&gt;It's 3 by default and this means that, to reach level 3, init passes by all level from 0 to 3, executing all scripts in /etc/rc[0123].d starting with the letter S (for start).&lt;BR /&gt;The same when you shutdown, in reverse order, executing scripts starting with letter K (for kill) in the same directories.&lt;BR /&gt;&lt;BR /&gt;All those scripts use configuration variables defined in /etc/rc.config.d/*. You'll see that there is nearly always a variable having a 0 or 1 value which controls if the script runs or not.&lt;BR /&gt;&lt;BR /&gt;All files in /etc/rcx.d have links in /sbin/init.d&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ps: here is SUDO main page&lt;BR /&gt;&lt;A href="http://www.courtesan.com/sudo/sudo.html" target="_blank"&gt;http://www.courtesan.com/sudo/sudo.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Nov 2000 07:05:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466636#M15855</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-23T07:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466637#M15856</link>
      <description>Thank you very much for all the help.  ( I couldn't login to the forum at all this morning.)&lt;BR /&gt;&lt;BR /&gt;I took a look at our "standard" password file:&lt;BR /&gt;&lt;BR /&gt;root:*:0:3::/:/bin/ksh&lt;BR /&gt;supertom*:0:1:Tom as root:/:/bin/ksh&lt;BR /&gt;supertim:*:0:1:Tim as root:/:/bin/ksh&lt;BR /&gt;&lt;BR /&gt;We have lots of super** accounts ( which might be a big potential security problem?)  and the reason why they want to use korn shell is because they want to be able to track .sh_history file.  Does this make sense?&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Nov 2000 20:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466637#M15856</guid>
      <dc:creator>Sharon Bi</dc:creator>
      <dc:date>2000-11-23T20:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466638#M15857</link>
      <description>Hi Sharon:&lt;BR /&gt;&lt;BR /&gt;Ouch! ...that is an absolute no-no in security terms. first, you have all super* sharing the same homedir , UID and GID. and that is equivalent to them being the same - one can log in and su to the other :-)&lt;BR /&gt;&lt;BR /&gt;If you want to be able to track what others are doing, configure sudo, and track through the sudo logs.&lt;BR /&gt;&lt;BR /&gt;if you need to see the history files posix-sh provides history file facilities (just like korn shell) from "man sh-posix":&lt;BR /&gt;&lt;BR /&gt;      HISTFILE       If this parameter is set when the shell is invoked, its&lt;BR /&gt;                     value is the path name of the file that is used to&lt;BR /&gt;                     store the command history.  The default value is&lt;BR /&gt;                     $HOME/.sh_history.  If the user is a superuser and no&lt;BR /&gt;                     HISTFILE is given, then no history file is used.  See&lt;BR /&gt;                     the "Command Reentry" subsection and the WARNINGS&lt;BR /&gt;                     section.&lt;BR /&gt;=========================================&lt;BR /&gt;In other words if you want root's .sh_history, then append the following line to /.profile&lt;BR /&gt;&lt;BR /&gt;HISTFILE=$HOME/.sh_history&lt;BR /&gt;&lt;BR /&gt;This works because this is what I use.&lt;BR /&gt;&lt;BR /&gt;As has been said before most of the functionality provided with Korn shell are also available with sh-posix.&lt;BR /&gt;&lt;BR /&gt;Cheers.</description>
      <pubDate>Thu, 23 Nov 2000 21:16:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466638#M15857</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-11-23T21:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466639#M15858</link>
      <description>Sharon wrote:&lt;BR /&gt;--------------&lt;BR /&gt;root:*:0:3::/:/bin/ksh &lt;BR /&gt;supertom*:0:1:Tom as root:/:/bin/ksh &lt;BR /&gt;supertim:*:0:1:Tim as root:/:/bin/ksh &lt;BR /&gt;&lt;BR /&gt;We have lots of super** accounts ( which might be a big potential security problem?) and the reason why they want to use korn shell is because they want to be able to track .sh_history file. Does this make sense? &lt;BR /&gt;&lt;BR /&gt;------&lt;BR /&gt;This is the most common reason cited by new sysadmins concerning POSIX shell versus ksh, and it's one of the security features. The parameters HISTFILE and HISTSIZE should always be set in /etc/profile for everyone as they affect both POSIX and ksh shells. One difference with the POSIX shell is that it will not create $HOME/.sh_history for root. So it must be created to be used (and permissions should be 600 only). &lt;BR /&gt;&lt;BR /&gt;I noticed /bin/ksh in your passwd file. /bin does not exist and has not existed for several years!  /bin is a temporary (transition) link for /usr/bin (try this: ls -ld /bin). Transition links exist to ease the transition to V.4 filesystem layout and naming conventions fo the industry. It would be a good idea to scan all your scripts for obsolete startup lines like: #!/bin/sh, #!/bin/ksh, etc, and replace them with #!/usr/bin/sh.</description>
      <pubDate>Fri, 24 Nov 2000 00:56:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466639#M15858</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2000-11-24T00:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: root shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466640#M15859</link>
      <description>Hi Sharon,&lt;BR /&gt;&lt;BR /&gt;This is really a security issue.&lt;BR /&gt;As Bill said previously, Posix shell doesn't create the .sh_history ($HISTFILE) for root, it must exist (permission 600) to be used.&lt;BR /&gt;&lt;BR /&gt;Otherwise, Posix shell offers the same facilities as the Korn shell.&lt;BR /&gt;&lt;BR /&gt;As I mentioned before, you should use the SUDO utility if you want some users to gain access to root privileges. This would at least allow you to track who's been doing what on the system, which could prove useful in some if not all cases.&lt;BR /&gt;&lt;BR /&gt;Root login should be restricted to a strict minimum, possibly from the system console only.&lt;BR /&gt;All actions needing root privileges should be done through 'su' or 'sudo'.&lt;BR /&gt;&lt;BR /&gt;Take some time to read the info at the following link:&lt;BR /&gt;&lt;A href="http://www.courtesan.com/sudo/sudo.html" target="_blank"&gt;http://www.courtesan.com/sudo/sudo.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Nov 2000 06:31:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-shell/m-p/2466640#M15859</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-24T06:31:37Z</dc:date>
    </item>
  </channel>
</rss>

