On Wed, Nov 17, 1999 at 12:01:45PM +0000, Nick Hilliard wrote:
> > Dumb question...I'd like to change the login shell for root on a Solaris
> > box from sh to tcsh...how would I do this??
>> But, if you're convinced that it's the best way to go, and that it's not
> going to have any odd side-effects, the way to do it is to change root's
> entry in /etc/passwd.
No! Follow advise of others on this list. Just don't do it.
Dave's advise of another user with UID 0 with another shell is
a good way to go.
Why not change roots shell from sh?
Well, as said by somebody else, maybe some scripts run by
root won't take too kindly to be run by tcsh. I don't know whether
they will or not. Also, let's say /usr is mounted elsewhere, and
you find yourself with with a non-statically
linked shell as roots shell right after /usr thrashed itself...
"As with most of my theories, this one doesn't hold up to close
scrutiny, but it's surprisingly resilient to casual criticism."
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!