From da2bcad5417af59877495f422c0773ab297c230f Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 30 May 2008 19:36:54 -0700 Subject: Allow any user to be in config file Root (which uses bash) must be allowed, and probably want to allow others as well. Better to add full shell support later --- scripts/system/vyatta_update_login.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/system/vyatta_update_login.pl b/scripts/system/vyatta_update_login.pl index bf2b0c10..27b8396c 100755 --- a/scripts/system/vyatta_update_login.pl +++ b/scripts/system/vyatta_update_login.pl @@ -75,10 +75,10 @@ for my $user (@user_keys) { if ( !defined $uid ) { $cmd = 'useradd -s /bin/vbash -m'; } - # is it a vyatta user? - elsif ( $shell ne '/bin/vbash' ) { - die "$user: exists but is not a vyatta login user\n"; - } + # TODO Add checks for attempts to put system users + # in configuration file + + # TODO Check if nothing changed and just skip else { $cmd = "usermod"; } -- cgit v1.2.3