summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-01-13 11:20:13 -0800
committerGitHub <noreply@github.com>2020-01-13 11:20:13 -0800
commitc63b1d6bd61858d2ccc7ee2f4d4f30e28b9801b6 (patch)
tree376d8c4abd5057c508da36949d072759e0ab8c29
parent1c7585dff3116c89a8802311984d54daaed0d1eb (diff)
parent8a0dd4477232713f5afd60a5b856c0430aea5a66 (diff)
downloadchef-c63b1d6bd61858d2ccc7ee2f4d4f30e28b9801b6.tar.gz
Merge pull request #9209 from Triodes/patch-1
Clear password flags when setting the password on aix
-rw-r--r--lib/chef/provider/user/aix.rb2
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