Linux Shell script to add a user with a password to the system

Originally published at: https://www.cyberciti.biz/tips/howto-write-shell-script-to-add-user.html

Are you wondering how to add a user with a password using a shell script under Linux? Let us see how to add a new user and set/change a password including chaning the existing Linux user’s password in a Linux shell script.