Remove logins via serial console
This commit is contained in:
parent
7a66ad8571
commit
8e9933725d
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue