Web lists-archives.com

Re: "passwd username" asks for current password of user even tho I'm root




Am Mittwoch, 10. Oktober 2018, 15:17:11 CEST schrieb Mariusz Gronczewski:
Hi,

as a normal user you should be able to change your password using "passwd 
testuser".

When you want to change an alien password,. obviously you should be root. 
Otherwise any user wopuld bve able to change anybodies password.

If you need another authoritive user for special things, add this user 
to /etc/sudoers and define the rules.

Hope I understood your problem correctly.

Best

Hans
> Hi,
> 
> On previous releases, and on our CentOS systems I could change password of
> user by just sudo-ing to root and typing "passwd testuser"
> 
> In current Debian release, doing that asks me to specify that user password,
> which is pointless because:
> 
> * I can access /etc/shadow anyway
> * I'm changing it because user forgot it
> 
> Is there any way to set passwd (or PAM) to not ask root for current password
> on passwd-ing non-root accounts ?
> 
> Cheers
> 
> Mariusz
> 
> --
> Mariusz Gronczewski, Administrator
> 
> Efigence S. A.
> ul. Wołoska 9a, 02-583 Warszawa
> T: [+48] 22 380 13 13
> F: [+48] 22 380 13 14
> E: mariusz.gronczewski@xxxxxxxxxxxx
> <mailto:mariusz.gronczewski@xxxxxxxxxxxx>