replacing the Bourne shell with the Korn shell

From: Spurgeon, John P (john.p.spurgeon@intel.com)
Date: Sun Nov 09 2003 - 14:22:35 EST


In Chapter 10 of "Learning the Korn Shell", Bill Rosenblatt talks about
replacing the Bourne shell with the Korn shell. I'm considering doing
this on a Solaris 7 system as follows:

rm /sbin/sh; cp -p /usr/bin/ksh /sbin/sh
rm /usr/bin/sh; ln /usr/bin/ksh /usr/bin/sh
rm /usr/bin/jsh; ln /usr/bin/ksh /usr/bin/jsh
rm /usr/lib/rsh; ln /usr/bin/ksh /usr/lib/rsh
rm /usr/bin/rsh; ln /usr/bin/ksh /usr/bin/rsh

However, I'm somewhat concerned about /usr/bin/rsh. I can see that
/usr/bin/sh, /usr/bin/jsh, and /usr/lib/rsh are all hard links to the
same program, but /usr/bin/rsh is different. Furthermore, /usr/bin/rsh
is a setuid root program.

Does anyone know why /usr/bin/rsh is different, why it is setuid root,
and what the consequences of replacing the file with /usr/bin/ksh are?

I'm not so concerned about /sbin/sh, because it's not setuid root;
however, it is also different from /usr/bin/sh. I'm curious to know what
the difference is between these two programs as well.

John Spurgeon
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:26 EDT