summaryrefslogtreecommitdiff
path: root/scripts/system
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@io.vyatta.com>2008-01-17 10:00:12 -0800
committerTom Grennan <tgrennan@io.vyatta.com>2008-01-17 10:00:12 -0800
commitfdde1f1d7ce42ba4355abe879e859933cc2087b6 (patch)
tree1a59b45286a7ace17dad53a22dcadbbedb689380 /scripts/system
parentfd9a338fd30aa6d0a4618d938c7143f9986b13eb (diff)
downloadvyatta-cfg-system-fdde1f1d7ce42ba4355abe879e859933cc2087b6.tar.gz
vyatta-cfg-system-fdde1f1d7ce42ba4355abe879e859933cc2087b6.zip
fix bug 2631 - add new users to vtysh.conf
Diffstat (limited to 'scripts/system')
-rwxr-xr-xscripts/system/vyatta_update_login_user.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/system/vyatta_update_login_user.pl b/scripts/system/vyatta_update_login_user.pl
index 05ff0b16..745b85d1 100755
--- a/scripts/system/vyatta_update_login_user.pl
+++ b/scripts/system/vyatta_update_login_user.pl
@@ -230,5 +230,12 @@ if (($new_user) && !(-e "/home/$user")) {
}
}
+my $vtysh_conf = "/etc/vyatta/quagga/vtysh.conf";
+if (($new_user) && (-e $vtysh_conf)) {
+ open(VTYSH_CONF, ">>$vtysh_conf") or exit 11;
+ print VTYSH_CONF "username $user nopassword\n";
+ close VTYSH_CONF;
+}
+
exit 0;