I want to create new users with password in my code. Using passwd utility prompts for user input to enter password which i want to avoid.
I tried shell scripting or using a text file as an input for passwd command but this didnt worked. This still prompts for Enter Password and wait for user input.
Is there is any way to do this or is there is any single line command to create a new user and doesnt require user input ?