Subject: Re: init: can't exec /bin/bash for /etc/rc: Exec format error
To: felix zaslavskiy <felix@students.poly.edu>
From: Greywolf <greywolf@starwolf.com>
List: current-users
Date: 06/27/2003 02:19:50
I think the original question was using /bin/bash in /etc/rc, or some
such, not the default shell for root.

- Root's default shell is csh *when logging in as (or otherwise becoming)
  root*.

- In single-user mode it will default to /bin/sh.

- /etc/rc has a shebang-/bin/sh at the top, unless he's changed it
  (don't.  It's bad practice).

As far as alternate root shells, my personal preference (assert
(FWIW == (worth_t) NULL)) is to have one's username capitalised
as a uid0 account, and then you get the shell of your choice, while
keeping root's shell stock as /bin/csh (unless, of course, you're
Greg or someone else who goes to the trouble to delete csh and all
remnants thereto which isn't wholly unreasonable, but I prefer not
to do that on principle...).

Ultimately, what you do to your own machine is your own business, but
as an SA for entirely too long to be good for my sanity, I do recommend
leaving the stock stuff in place, lest you be confronted with a machine
that is NOT yours to alter in Your Way.

				--*greywolf;
--
NetBSD: Linux without the hype.