Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

#!/bin/sh echo "Criado por Rafael Apolinrio" echo ".

" echo "Criando Authentication Profile" clish -c "add aaa trol sufficient" clish -c "add aaa trol sufficient" clish -c "add aaa rol sufficient" clish -c "add aaa requisite" clish -c "add aaa equisite" clish -c "add aaa requisite" authprofile TACPLUS_httpd_authprofile authtype TACPLUS authcon authprofile TACPLUS_login_authprofile authtype TACPLUS authcon authprofile TACPLUS_sshd_authprofile authtype TACPLUS authcont authprofile LOCAL_httpd_authprofile authtype HTTPD authcontrol authprofile LOCAL_sshd_authprofile authtype UNIX authcontrol r authprofile LOCAL_login_authprofile authtype UNIX authcontrol

echo "Authentication Profile criado" echo "." echo "Configurando Authentication Profile" clish -c "add aaa tacplus-servers authprofile TACPLUS_httpd_authprofile priority 1 host p_1" port 49 secret "password" timeout 3" clish -c "add aaa tacplus-servers authprofile TACPLUS_httpd_authprofile priority 2 host p_2" port 49 secret "password" timeout 3" clish -c "add aaa tacplus-servers authprofile TACPLUS_sshd_authprofile priority 1 host p_1" port 49 secret "password" timeout 3" clish -c "add aaa tacplus-servers authprofile TACPLUS_sshd_authprofile priority 2 host p_2" port 49 secret "password" timeout 3" clish -c "add aaa tacplus-servers authprofile TACPLUS_login_authprofile priority 1 host p_1" port 49 secret "password" timeout 3" clish -c "add aaa tacplus-servers authprofile TACPLUS_login_authprofile priority 2 host p_2" port 49 secret "password" timeout 3" echo "Authentication Profile configurado" echo "." echo "Criando Service Profile" clish -c "add aaa profile TACPLUS_prof_httpd authprofile TACPLUS_httpd_authprofi le acctprofile base_httpd_acctprofile sessprofile base_httpd_sessprofile" clish -c "add aaa profile TACPLUS_prof_httpd authprofile LOCAL_httpd_authprofile " clish -c "add aaa profile TACPLUS_prof_login authprofile TACPLUS_login_authprofi le acctprofile base_login_acctprofile sessprofile base_login_sessprofile" clish -c "add aaa profile TACPLUS_prof_login authprofile LOCAL_login_authprofile " clish -c "add aaa profile TACPLUS_prof_sshd authprofile TACPLUS_sshd_authprofile acctprofile base_sshd_acctprofile sessprofile base_sshd_sessprofile" clish -c "add aaa profile TACPLUS_prof_sshd authprofile LOCAL_sshd_authprofile" echo "Service Profile criado" echo "." echo "Atribuindo Service Module" clish -c "set aaa service login profile TACPLUS_prof_login" clish -c "set aaa service httpd profile TACPLUS_prof_httpd"

clish -c "set aaa service sshd profile TACPLUS_prof_sshd" echo echo echo echo "Service Module atribuido" "." "." "Criando usurios"

clish -c "add user rafael uid 0 homedir /var/emhome/rafael" clish -c "set user rafael shell /bin/csh" clish -c "add user teste uid 0 homedir /var/emhome/teste" clish -c "set user teste shell /bin/csh" echo "Usurios criados" echo "." echo "Salvando configuraes" clish -c "save config" echo "Configuraes salvas"

You might also like