summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Login
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta/Login')
-rwxr-xr-xlib/Vyatta/Login/User.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Vyatta/Login/User.pm b/lib/Vyatta/Login/User.pm
index 3038c467..cc28fd1e 100755
--- a/lib/Vyatta/Login/User.pm
+++ b/lib/Vyatta/Login/User.pm
@@ -176,8 +176,11 @@ sub _local_users {
my @users;
setpwent();
- while ( my ($name, undef, $uid) = getpwent() ) {
+ while ( my ($name, undef, $uid, undef, undef, undef,
+ undef, undef, $shell) = getpwent() ) {
next unless ($uid >= 1000 && $uid <= 29999);
+ next unless $shell eq '/bin/vbash';
+
push @users, $name;
}
endpwent();