summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-01-27 18:04:40 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-01-27 18:16:48 -0800
commitf28891636d2ae361d35fd7d7f0a7fc5f63732034 (patch)
tree11e427e1e4b21308ad52b1618fb438cdbe827232 /lib/Vyatta
parent504293fab4a259f55b0dde57d8c26f5dbceaa95c (diff)
downloadvyatta-cfg-quagga-f28891636d2ae361d35fd7d7f0a7fc5f63732034.tar.gz
vyatta-cfg-quagga-f28891636d2ae361d35fd7d7f0a7fc5f63732034.zip
Allow local user (non vbash) accounts
Don't purge non-vyatta users.
Diffstat (limited to 'lib/Vyatta')
-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();