From 0508cb5a1df40bde65abe6d4947c0076abe7cfb9 Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Fri, 25 Oct 2024 20:19:15 +0200 Subject: [PATCH] Give more information if setting the password fails Signed-off-by: Volker Theile --- deb/openmediavault/usr/share/php/openmediavault/system/user.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/deb/openmediavault/usr/share/php/openmediavault/system/user.inc b/deb/openmediavault/usr/share/php/openmediavault/system/user.inc index 858577005b5..71d1db53dcb 100644 --- a/deb/openmediavault/usr/share/php/openmediavault/system/user.inc +++ b/deb/openmediavault/usr/share/php/openmediavault/system/user.inc @@ -379,6 +379,7 @@ class User { $tmpFile->write(sprintf("%s:%s", $this->getName(), $password)); $cmd = new \OMV\System\Process("chpasswd"); $cmd->setInputFromFile($tmpFile->getFilename()); + $cmd->setRedirect2to1(); $cmd->execute(); }