Skip to content
Snippets Groups Projects
Commit 8e993372 authored by Bob Mottram's avatar Bob Mottram
Browse files

Remove logins via serial console

parent 7a66ad85
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment