Posted: . At: 9:26 PM. This was 10 years ago. Post ID: 7836
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


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


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.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.