mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user