summaryrefslogtreecommitdiff
path: root/usr/bin/rmpasswd
blob: 00dd2e775d7ca7855122c0c9a521aacca5ace8cf (plain)
1
2
3
4
5
6
#!/bin/bash

while read p; do
    read -a arr <<< $p
    passwd -d ${arr[0]}
done <<< "$(passwd -Sa |egrep '^[^[:space:]]+[[:space:]]P[[:space:]]')"