diff options
Diffstat (limited to 'scripts/system/vyatta_update_login_user.pl')
-rwxr-xr-x | scripts/system/vyatta_update_login_user.pl | 7 |
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; |