Change default shell for new users
2019-10-24
If you have a system with lots of new users, you probably want to set the default shell to the one that most users prefer.
If you're using the useradd
command, you can set default options in the file /etc/default/useradd
.
Editing this file can be done by using useradd -D ...
:
# set default shell for new users to bash
useradd -D -s /bin/bash
Check here for more information.