I need to have the ability to create user accounts on my Linux (Fedora 10) and automatically assign a password via a bash script(or otherwise, if need be).
It\'s eas
--stdin doesn't work on Debian. It says:
--stdin
`passwd: unrecognized option '--stdin'`
This worked for me:
#useradd $USER #echo "$USER:$SENHA" | chpasswd
Here we can find some other good ways: