How to change the default shell for new users on your Ubuntu Linux system.

Posted: October 18, 2014. At: 9:26 PM. This was 3 years ago. Post ID: 7836

The useradd command is used to add new users on your Linux system. But it can be used for other things too.

You may display the defaults for new users.

jason-H55-USB3% sudo useradd -D             
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/sh
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no

Use the -s parameter to useradd and this will change the default shell for new users.

sudo useradd -D -s /bin/sh

Very easy indeed.

No comments have been made. Use this form to start the conversation :)

Leave a Reply