change root shell from /bin/csh to /bin/sh

From: Antonio Olivares <olivares14031_at_gmail.com>
Date: Fri, 05 Jan 2024 05:33:20 UTC
Dear kind freebsd-users,

I have a little problem.  I have successfully updated to 14.0-RELEASE,
but the root shell is still /bin/csh.  I want to use /bin/sh as it is
now the one that should be the default.

olivares@rosewill:~ $ pwd
/home/olivares
olivares@rosewill:~ $ su -
Password:
root@rosewill:~ # pwd
/root
root@rosewill:~ # echo $SHELL
/bin/csh
root@rosewill:~ # chsh -s /bin/sh root
chsh: entry inconsistent
chsh: pw_copy: Invalid argument
root@rosewill:~ # getent passwd root
root:$6$D6idTtEyP0dqMfLQ$6Q3rUSk56XPZeHPfLh82UnTgw7hTDKFQLGI0BKRZpiy59.NjVzHPULJw0O38dQqKEjWiW.4EMh3TX56Xittz81:0:0:Charlie
&:/root:/bin/csh
root@rosewill:~ # uname -a
FreeBSD rosewill 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon Dec
11 04:56:01 UTC 2023
root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
amd64

Best Regards,


Antonio