Dick,
On 23/05/07, Sean Sprague <[EMAIL PROTECTED]> wrote:
Gerard,
> How can I make BASH the root's default shell?
This question has come up more times than possibly any other. The
answer is invariably (and correctly) "Don't do it!".
What's the technical reason for that?
Because all I've heard is
a) it might break a script
b) it means you are gay
give a sensible reason or don't keep saying this.
Firstly, I don't like your tone. This is a discussion forum, and I will say what I choose to. If those are the only
points that you have heard, then I suspect that you have not been interested enough to listen in the right places.
Historically, one reason was that /sbin/sh was statically linked, and thus had no dependencies on libraries located
outside the root filesystem. People still do have /usr as a separate filesystem, and sh's linking used to remove the
necessity to have /usr mounted.
Thesedays, for sh, ksh, and bash are all dynamically linked, but all library dependencies are under /lib in the root
filesystem anyways; so technically any of these shells could be root's default. Purists would still opt for /sbin/sh.
Also as an addendum, last time I checked, if your entry for root in /etc/passwd was munged and the shell had become
unexecutable, from single-user mode Solaris would run up a /sbin/sh for you to recover the situation from.
Regards... Sean.
_______________________________________________
opensolaris-discuss mailing list
[email protected]