Thank you Anomie, I mistook "change" for "chage", the latter works fine and forces the change.
However, in my case I get a strange behaviour: When I use chage to force the password change, this means that I have to enter the actual password twice before entering the new one (one for login and one for password change), a bit on the heavy side. It also curiously changes the required password strength (cannot force the use of a simple password for tests purposes for instances).
I will probably carry on using a simple "passwd root" in a script file called at login for those last bad reasons but your answer was absolutely correct and a valuable tip, thank you.
|