diff options
| author | ivan <ivan> | 2004-03-17 23:08:49 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2004-03-17 23:08:49 +0000 | 
| commit | 080031723064a2e3f6475fdc6b1fccf090a6643d (patch) | |
| tree | 6ad25efa183171d02e140d8fd0305127f9ec2136 | |
| parent | a309d68e02de2d96c078d552dfa7cd8a3f763570 (diff) | |
skip root user and anyone with *LK* or NP accounts
| -rwxr-xr-x | bin/shadow.reimport | 4 | 
1 files changed, 4 insertions, 0 deletions
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 (<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\*/;  | 
