summaryrefslogtreecommitdiff
path: root/scripts/standalone_root_pw_reset
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/standalone_root_pw_reset')
-rwxr-xr-xscripts/standalone_root_pw_reset3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/standalone_root_pw_reset b/scripts/standalone_root_pw_reset
index 910a141d..dc12a4d6 100755
--- a/scripts/standalone_root_pw_reset
+++ b/scripts/standalone_root_pw_reset
@@ -52,8 +52,9 @@ change_password() {
fi
done
+ # set the password for the user then store it in the config
+ # so the user is recreated on the next full system boot.
local epwd=$(mkpasswd -H md5 "$pwd1")
- usermod -p $epwd $user
# escape any slashes in resulting password
local eepwd=$(sed 's:/:\\/:g' <<< $epwd)
set_encrypted_password $user $eepwd $CF