diff options
author | Patrick Murphy <Patrick.Murphy@multitech.com> | 2020-06-08 10:30:41 -0500 |
---|---|---|
committer | Patrick Murphy <Patrick.Murphy@multitech.com> | 2020-06-08 10:30:41 -0500 |
commit | d3f1ca834316c060197ab90e1e7e8618600aeda5 (patch) | |
tree | ad689755ca8e24aac8d311add9ff7891bffb6489 | |
parent | 8f02cf3a8a39d17b8a74c29b383a9156d8f4146a (diff) | |
download | commissioning-d3f1ca834316c060197ab90e1e7e8618600aeda5.tar.gz commissioning-d3f1ca834316c060197ab90e1e7e8618600aeda5.tar.bz2 commissioning-d3f1ca834316c060197ab90e1e7e8618600aeda5.zip |
changed passwd -d to passwd -l to lock instead of purge detected passwords
-rw-r--r-- | usr/bin/rmpasswd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/bin/rmpasswd b/usr/bin/rmpasswd index 00dd2e7..4caa991 100644 --- a/usr/bin/rmpasswd +++ b/usr/bin/rmpasswd @@ -2,5 +2,5 @@ while read p; do read -a arr <<< $p - passwd -d ${arr[0]} + passwd -l ${arr[0]} done <<< "$(passwd -Sa |egrep '^[^[:space:]]+[[:space:]]P[[:space:]]')" |