Add -F to usermod -p to force user password update (#26258)

If changing root password, usermod will fail with error "Login root is currently in use\n".  -F avoids this
pull/35407/head
Ryan Groten 7 years ago committed by Adam Miller
parent ea2b89c7ae
commit 34d6f5168f

@ -2096,6 +2096,7 @@ class HPUX(User):
cmd.append(self.shell)
if self.update_password == 'always' and self.password is not None and info[1] != self.password:
cmd.append('-F')
cmd.append('-p')
cmd.append(self.password)

Loading…
Cancel
Save