Remove logins via serial console

This commit is contained in:
Bob Mottram 2016-11-29 20:34:29 +00:00
parent 7a66ad8571
commit 8e9933725d
1 changed files with 10 additions and 0 deletions

View File

@ -409,6 +409,13 @@ function limit_user_logins {
fi fi
} }
function remove_serial_logins {
if grep 'ttyS' /etc/securetty; then
cp /etc/securetty /etc/securetty_old
sed -i '/ttyS/d' /etc/securetty
fi
}
function setup_firewall { function setup_firewall {
function_check create_completion_file function_check create_completion_file
create_completion_file create_completion_file
@ -433,6 +440,9 @@ function setup_utils {
read_config_param "PROJECT_REPO" read_config_param "PROJECT_REPO"
write_config_param "PROJECT_REPO" "$PROJECT_REPO" write_config_param "PROJECT_REPO" "$PROJECT_REPO"
function_check remove_serial_logins
remove_serial_logins
function_check set_max_login_tries function_check set_max_login_tries
set_max_login_tries 10 set_max_login_tries 10