I'm writing a script to add users and add a new default password but I keep getting this error saying "Password change aborted" on a new line its says "Authentication token manipulation error"
echo -e "UserName: $UserName"
echo -e "Password: $birthDate" | tr -d '/'
echo $birthDate | sudo passwd $UserName
echo -e "Birth Date: $birthDate"
echo -e "Group: $group"
echo -e "shared Folder: $sharedFolder\n"