From a8baa826d219234673a128413432563f3f09b436 Mon Sep 17 00:00:00 2001 From: Vlastimil Holer Date: Wed, 21 Mar 2018 17:40:37 +0100 Subject: [PATCH] gh-107: Disable default password reset Closes #107 --- src/etc/one-context.d/loc-20-set-username-password | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/one-context.d/loc-20-set-username-password b/src/etc/one-context.d/loc-20-set-username-password index 3441eb4..7375824 100755 --- a/src/etc/one-context.d/loc-20-set-username-password +++ b/src/etc/one-context.d/loc-20-set-username-password @@ -21,7 +21,7 @@ USERNAME=${USERNAME:-root} USERNAME_SHELL=${USERNAME_SHELL:-/bin/bash} USERNAME_SUDO=${USERNAME_SUDO:-${GRANT_SUDO:-YES}} USERNAME_SUDO=$(echo "${USERNAME_SUDO}" | tr '[:lower:]' '[:upper:]') -USERNAME_PASSWORD_RESET=${USERNAME_PASSWORD_RESET:-YES} +USERNAME_PASSWORD_RESET=${USERNAME_PASSWORD_RESET:-NO} USERNAME_PASSWORD_RESET=$(echo "${USERNAME_PASSWORD_RESET}" | tr '[:lower:]' '[:upper:]') if ! getent passwd "${USERNAME}" > /dev/null 2>&1; then