diff --git a/script/check/host/all/core_ssh_group_ssh_login_exists.check.sh b/script/check/host/all/core_ssh_group_ssh_login_exists.check.sh new file mode 100755 index 0000000..a7939fc --- /dev/null +++ b/script/check/host/all/core_ssh_group_ssh_login_exists.check.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +getent group ssh_login > /dev/null \ + && exit 0 +exit 1 diff --git a/script/check/host/all/core_ssh_user_jenkins_is_member_of_group_ssh_login.check.sh b/script/check/host/all/core_ssh_user_jenkins_is_member_of_group_ssh_login.check.sh new file mode 100755 index 0000000..6885511 --- /dev/null +++ b/script/check/host/all/core_ssh_user_jenkins_is_member_of_group_ssh_login.check.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +getent group ssh_login | grep -q jenkins \ + && exit 0 +exit 1