From fdde1f1d7ce42ba4355abe879e859933cc2087b6 Mon Sep 17 00:00:00 2001 From: Tom Grennan Date: Thu, 17 Jan 2008 10:00:12 -0800 Subject: fix bug 2631 - add new users to vtysh.conf --- scripts/system/vyatta_update_login_user.pl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts') 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; -- cgit v1.2.3