Dummy nologin command

To fix STIG error
This commit is contained in:
Bob Mottram 2016-11-30 10:30:56 +00:00
parent 7e9f249e11
commit b97ec3892b
1 changed files with 10 additions and 0 deletions

View File

@ -466,6 +466,13 @@ function disable_core_dumps {
fi
}
function dummy_nologin_command {
if [ ! -f /sbin/nologin ]; then
echo '#!/bin/bash' > /sbin/nologin
chmod +x /sbin/nologin
fi
}
function setup_firewall {
function_check create_completion_file
create_completion_file
@ -490,6 +497,9 @@ function setup_utils {
read_config_param "PROJECT_REPO"
write_config_param "PROJECT_REPO" "$PROJECT_REPO"
function_check dummy_nologin_command
dummy_nologin_command
function_check disable_core_dumps
disable_core_dumps