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
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.

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             

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