diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-01-27 18:04:40 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-01-27 18:16:48 -0800 |
commit | f28891636d2ae361d35fd7d7f0a7fc5f63732034 (patch) | |
tree | 11e427e1e4b21308ad52b1618fb438cdbe827232 /lib/Vyatta/Login/User.pm | |
parent | 504293fab4a259f55b0dde57d8c26f5dbceaa95c (diff) | |
download | vyatta-cfg-system-f28891636d2ae361d35fd7d7f0a7fc5f63732034.tar.gz vyatta-cfg-system-f28891636d2ae361d35fd7d7f0a7fc5f63732034.zip |
Allow local user (non vbash) accounts
Don't purge non-vyatta users.
Diffstat (limited to 'lib/Vyatta/Login/User.pm')
-rwxr-xr-x | lib/Vyatta/Login/User.pm | 5 |
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(); |