Skip to content

Instantly share code, notes, and snippets.

@epequeno
Created August 31, 2014 22:32
Show Gist options
  • Save epequeno/63bbb4fa9793b047597b to your computer and use it in GitHub Desktop.
Save epequeno/63bbb4fa9793b047597b to your computer and use it in GitHub Desktop.
pw-reset.sh
#!/bin/bash
PASSWORD=123456
for i in {1..10}; do
if [[ $i -lt 10 ]]; then
echo -e "$PASSWORD\n$PASSWORD" | ipa user-mod tnt0$i --password
else
echo -e "$PASSWORD\n$PASSWORD" | ipa user-mod tnt$i --password
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment