From b97ec3892b526614965d972da02366dd49915de4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 30 Nov 2016 10:30:56 +0000 Subject: [PATCH] Dummy nologin command To fix STIG error --- src/freedombone-utils-setup | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index 738bb30a..ce822476 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -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