#!/bin/bash

#used for cli command "set system aaa tacacs-plus timeout"
#input $1:Tacacs+ server timeout value
#no output

sed -i "s/\(.*\)login=\(.*\)timeout=\(.*\)/\1login=\2timeout=$1/g"  /etc/pam.d/common-account
sed -i "s/\(.*\)login=\(.*\)timeout=\(.*\)/\1login=\2timeout=$1/g"  /etc/pam.d/common-auth
sed -i "s/\(.*\)login=\(.*\)timeout=\(.*\)/\1login=\2timeout=$1/g"  /etc/pam.d/common-session

exit 0
