better error message for useradd

This commit is contained in:
Dietmar Maurer 2012-03-01 12:40:52 +01:00
parent e2993b66c3
commit 2de144076b
3 changed files with 9 additions and 3 deletions

View File

@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=1.0
PACKAGE=libpve-access-control
PKGREL=16
PKGREL=17
DESTDIR=
PREFIX=/usr

View File

@ -463,14 +463,14 @@ sub encrypt_pw {
sub store_pam_password {
my ($userid, $password) = @_;
my $cmd = ['/usr/sbin/usermod'];
my $cmd = ['usermod'];
my $epw = encrypt_pw($password);
push @$cmd, '-p', $epw;
push @$cmd, $userid;
run_command($cmd);
run_command($cmd, errmsg => 'change password failed');
}
sub domain_set_password {

View File

@ -1,3 +1,9 @@
libpve-access-control (1.0-17) unstable; urgency=low
* set propagate flag by default
-- Proxmox Support Team <support@proxmox.com> Thu, 01 Mar 2012 12:40:19 +0100
libpve-access-control (1.0-16) unstable; urgency=low
* add 'pveum passwd' method