The shell script that I have to write has to create new users and automatically assign them to groups. This is my code so far:
echo -n "Enter the username: "
I was able to get the shell script to add the new user (I checked the
/etc/passwd entry). However, I have tried and I am not able to get a passwd (entered by the user) to the newly created user before. If anyone could help me assign a password to the newly created user it would be of much help.