From 8e9933725ddfd49e68b39e9c1ec9daa9a5dc40cf Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 29 Nov 2016 20:34:29 +0000 Subject: [PATCH] Remove logins via serial console --- src/freedombone-utils-setup | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index 99fa734d..776cd209 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -409,6 +409,13 @@ function limit_user_logins { 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_check create_completion_file create_completion_file @@ -433,6 +440,9 @@ function setup_utils { read_config_param "PROJECT_REPO" write_config_param "PROJECT_REPO" "$PROJECT_REPO" + function_check remove_serial_logins + remove_serial_logins + function_check set_max_login_tries set_max_login_tries 10