> > Change root's default shell? Why?
> CSH has its problems, and you are somewhat familiar with bash since you
> use Linux, too. The very first thing I added to NetBSD when I installed
> it was a static-linked bash. Using the same shell, when it's available,
> in every OS makes things much easier.
of using bash as the superuser:
$head -4 /etc/passwd
# $FreeBSD: src/etc/master.passwd,v 1.34 2003/04/27 05:45:29 imp Exp $
The default installations don't include bash, so it must be added from
the ports collection and the correct path to bash must be added to the
passwd file before you can actually login to the 'toor' account.
Note that this example is from FreeBSD. The path to bash in NetBSD is
/usr/pkg/bin/bash, so don't get them confused.
I find the easiest way to modify the /etc/passwd file is with vipw
instead of the arcane syntax for usermod and friends.
DON'T FORGET to change the password for 'toor' afterwards:
Just typing 'passwd' as root will change root's passwd but NOT
toor's password. They are two different users as far as login