diff options
author | Tim Smith <tsmith@chef.io> | 2020-01-13 11:20:13 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-13 11:20:13 -0800 |
commit | c63b1d6bd61858d2ccc7ee2f4d4f30e28b9801b6 (patch) | |
tree | 376d8c4abd5057c508da36949d072759e0ab8c29 /lib | |
parent | 1c7585dff3116c89a8802311984d54daaed0d1eb (diff) | |
parent | 8a0dd4477232713f5afd60a5b856c0430aea5a66 (diff) | |
download | chef-c63b1d6bd61858d2ccc7ee2f4d4f30e28b9801b6.tar.gz |
Merge pull request #9209 from Triodes/patch-1
Clear password flags when setting the password on aix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/user/aix.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/user/aix.rb b/lib/chef/provider/user/aix.rb index 8a170d276a..1e740909bc 100644 --- a/lib/chef/provider/user/aix.rb +++ b/lib/chef/provider/user/aix.rb @@ -110,7 +110,7 @@ class Chef return unless current_resource.password != new_resource.password && new_resource.password logger.trace("#{new_resource.username} setting password to #{new_resource.password}") - command = "echo '#{new_resource.username}:#{new_resource.password}' | chpasswd -e" + command = "echo '#{new_resource.username}:#{new_resource.password}' | chpasswd -c -e" shell_out!(command) end |