summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Bouchet-Valat <nalimilan@club.fr>2009-11-02 23:38:59 +0100
committerMilan Bouchet-Valat <nalimilan@club.fr>2009-11-02 23:44:21 +0100
commite2a6668dcd5b4e85c0a5f7ea53198776617d2ef9 (patch)
tree1a9d9936068c15f978e0477c2329b35af235c59c
parentc9ee9b4fbc4e39767ae658ab2636aac2bc37944a (diff)
Fix user password modification
Commit ee59351bfa31ee60779a20a79b1b49f308a777b0 broke it by removing the password parameter.
-rw-r--r--Users/Users.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Users/Users.pm b/Users/Users.pm
index 233a1cc..41bb5cc 100644
--- a/Users/Users.pm
+++ b/Users/Users.pm
@@ -674,9 +674,11 @@ sub change_user
@command = ($cmd_usermod, "-d", $$new_user[$HOME],
"-g", $$new_user[$GID],
"-l", $$new_user[$LOGIN],
+ "-p", $$new_user[$PASSWD],
"-s", $$new_user[$SHELL],
"-u", $$new_user[$UID],
$$old_user[$LOGIN]);
+
&Utils::File::run (@command);
}