Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jan 2024 23:33:20 -0600
From:      Antonio Olivares <olivares14031@gmail.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   change root shell from /bin/csh to /bin/sh
Message-ID:  <CAJ5UdcPRMv1V=uX2rCC6aPbviieCOK7LO%2Bu3an%2BmjpDWuaiyAw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ5UdcPRMv1V=uX2rCC6aPbviieCOK7LO%2Bu3an%2BmjpDWuaiyAw>