I am writing a script to add a large amount of users to a system. Part of this involves setting default passwords for each user. How can I set users' passwords without it prompting me for the password up front?
Unfortunately passwd doesn't seem to take an argument stating the new password to set. I'm using Ubuntu 11.10.