skip root user and anyone with *LK* or NP accounts
authorivan <ivan>
Wed, 17 Mar 2004 23:08:48 +0000 (23:08 +0000)
committerivan <ivan>
Wed, 17 Mar 2004 23:08:48 +0000 (23:08 +0000)
bin/shadow.reimport

index a02582d..2fc90d7 100755 (executable)
@@ -93,6 +93,10 @@ while (<SHADOW>) {
 
   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\*/;