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

Dummy nologin command

To fix STIG error
parent 7e9f249e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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