From dd8f293d9860ef9ae8e0fbe6d30be6e7048a0750 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 27 Jul 2014 21:35:31 +0100 Subject: Add some heuristics to ignore system users in the 500-999 range --- userdrake | 1 + 1 file changed, 1 insertion(+) diff --git a/userdrake b/userdrake index 377ccfc..2cbe8f7 100755 --- a/userdrake +++ b/userdrake @@ -300,6 +300,7 @@ sub RefreshUsersFull { my @UserReal; LOOP: foreach my $l (@$users) { next LOOP if $filterusers && $l->Uid($GetValue) <= 499 || $l->Uid($GetValue) == 65534; + next LOOP if $filterusers && $l->Uid($GetValue) > 499 && $l->Uid($GetValue) < 1000 && ($l->HomeDir($GetValue) eq "/" || $l->HomeDir($GetValue) =~ /^\/var\// || $l->LoginShell($GetValue) =~ /(nologin|false)$/); push @UserReal, $l if $l->UserName($GetValue) =~ /^\Q$strfilt/; } my $i; -- cgit v1.2.1