summaryrefslogtreecommitdiff
path: root/usr/bin/rmpasswd
diff options
context:
space:
mode:
Diffstat (limited to 'usr/bin/rmpasswd')
-rw-r--r--usr/bin/rmpasswd10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/bin/rmpasswd b/usr/bin/rmpasswd
new file mode 100644
index 0000000..d36b8d1
--- /dev/null
+++ b/usr/bin/rmpasswd
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+while read p; do
+ delim=$(echo $p | tr ":" " ")
+ read -a arr <<< $delim
+ if [[ ${arr[1]} == "$"* ]]
+ then
+ passwd -d ${arr[0]}
+ fi
+done < /etc/shadow \ No newline at end of file