diff options
author | ivan <ivan> | 2004-03-17 23:08:48 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-03-17 23:08:48 +0000 |
commit | 3fe2bdd02f71c30a4d2bb29fdf3e63f416fd92d7 (patch) | |
tree | 144aea3c2644dadca7875c0596c03dd8077f41a5 /bin/shadow.reimport | |
parent | 9ceb48a8f852ba25cc569d2da87c092cf33b3a28 (diff) |
skip root user and anyone with *LK* or NP accounts
Diffstat (limited to 'bin/shadow.reimport')
-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 a02582d96..2fc90d7f2 100755 --- a/bin/shadow.reimport +++ b/bin/shadow.reimport @@ -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\*/; |