summaryrefslogtreecommitdiff
path: root/scripts/system
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-30 19:36:54 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-30 19:36:54 -0700
commitda2bcad5417af59877495f422c0773ab297c230f (patch)
tree302400b63f7d77cec0292fb673ed6b75f1b985e9 /scripts/system
parent89fe48dea3fd1e3cbbacc0e78f58d277d72168b8 (diff)
downloadvyatta-cfg-quagga-da2bcad5417af59877495f422c0773ab297c230f.tar.gz
vyatta-cfg-quagga-da2bcad5417af59877495f422c0773ab297c230f.zip
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
Diffstat (limited to 'scripts/system')
-rwxr-xr-xscripts/system/vyatta_update_login.pl8
1 files 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";
}