random-password.howto.sh
#!/bin/sh
echo `</dev/urandom tr -dc A-Za-z0-9 | head -c8`
# echo `</dev/urandom tr -dc 'A-Za-z1-9\!.$%&/=?()@#-.:,;' | head -c12`
for i in user1 user2 user3; do P=$i:`</dev/urandom tr -dc A-Za-z0-9 | head -c8`;echo echo $P \| chpasswd; echo $P | chpasswd ;done