From 3fe2bdd02f71c30a4d2bb29fdf3e63f416fd92d7 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 17 Mar 2004 23:08:48 +0000 Subject: [PATCH] skip root user and anyone with *LK* or NP accounts --- bin/shadow.reimport | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/shadow.reimport b/bin/shadow.reimport index a02582d96..2fc90d7f2 100755 --- a/bin/shadow.reimport +++ b/bin/shadow.reimport @@ -93,6 +93,10 @@ while () { next unless $svc_acct->_password eq '*' || $opt_r; + next if $svc_acct->username eq 'root'; + + next if $password eq 'NP' || $password eq '*LK*'; + next if $svc_acct->_password eq $password; next if $svc_acct->_password =~ /^\*SUSPENDED\*/; -- 2.11.0