parent
40bf38fa97
commit
6796969bcd
@ -0,0 +1,27 @@
|
|||||||
|
From c0f6c3e6c1a8abc1dff900669e1743f78f2543b4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: tigro <tigro@msvsphere-os.ru>
|
||||||
|
Date: Sat, 10 Feb 2024 23:55:52 +0300
|
||||||
|
Subject: [PATCH] Change chpasswd to passwd to support PAM crypto algorithms
|
||||||
|
|
||||||
|
---
|
||||||
|
pkg/users/password-dialogs.js | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/pkg/users/password-dialogs.js b/pkg/users/password-dialogs.js
|
||||||
|
index 089abac41..5589e79f0 100644
|
||||||
|
--- a/pkg/users/password-dialogs.js
|
||||||
|
+++ b/pkg/users/password-dialogs.js
|
||||||
|
@@ -111,8 +111,8 @@ function passwd_self(old_pass, new_pass) {
|
||||||
|
|
||||||
|
export function passwd_change(user, new_pass) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
- cockpit.spawn(["chpasswd"], { superuser: "require", err: "out" })
|
||||||
|
- .input(user + ":" + new_pass)
|
||||||
|
+ cockpit.spawn(["passwd", user, "--stdin"], { superuser: "require", err: "out" })
|
||||||
|
+ .input(new_pass)
|
||||||
|
.done(function() {
|
||||||
|
resolve();
|
||||||
|
})
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
Loading…
Reference in new issue