Why don't you just use useradd -p option? This allows you to specify a password when you are adding the user. You could read the list of usernames and passwords from the file and then do a "useradd <user> -p <passwd>"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.