i use the following bash script to change password for users in list pass=`cat /dev/urandom | tr -dc 'a-zA-Z0-9-!@#$%^&*()+{}|:<>?=' | fold -w 12 | grep -i '[!@#$%^&*()_+{}|:<>?=]' | head -n 1` for usr in `cat usrs.lst` do printf "Username is $usr and password is $passn" done
the problem with the previous code it that is doesnt change the password meaning it gives one password for every user i need the previous script to give different password for each user so what i'm missing in the previous code ?
