From: Dietmar Maurer Date: Thu, 1 Mar 2012 11:40:52 +0000 (+0100) Subject: better error message for useradd X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=commitdiff_plain;h=2de144076b1dcd0b2544c4f24743cb19e30a541b;hp=e2993b66c3f119dd8c5e724958e99d82a15ba2c0 better error message for useradd --- diff --git a/Makefile b/Makefile index 0039083..cb543ea 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ RELEASE=2.0 VERSION=1.0 PACKAGE=libpve-access-control -PKGREL=16 +PKGREL=17 DESTDIR= PREFIX=/usr diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm index c9d8e4e..d3feb24 100644 --- a/PVE/AccessControl.pm +++ b/PVE/AccessControl.pm @@ -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 { diff --git a/changelog.Debian b/changelog.Debian index 7281cf0..97770d4 100644 --- a/changelog.Debian +++ b/changelog.Debian @@ -1,3 +1,9 @@ +libpve-access-control (1.0-17) unstable; urgency=low + + * set propagate flag by default + + -- Proxmox Support Team Thu, 01 Mar 2012 12:40:19 +0100 + libpve-access-control (1.0-16) unstable; urgency=low * add 'pveum passwd' method