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

index 9ef8325..acf31d3 100755 (executable)
@@ -92,6 +92,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\*/;