From 080031723064a2e3f6475fdc6b1fccf090a6643d Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 17 Mar 2004 23:08:49 +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 9ef8325c1..acf31d362 100755 --- a/bin/shadow.reimport +++ b/bin/shadow.reimport @@ -92,6 +92,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.20.1