summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron List <aronotmar@live.nl>2020-01-13 12:28:02 +0100
committerGitHub <noreply@github.com>2020-01-13 12:28:02 +0100
commit8a0dd4477232713f5afd60a5b856c0430aea5a66 (patch)
tree3b8aab105a8f695c2e721df90c48d7495a4473ec
parentb2df5b38d387376777c7413e43f264c1396f30e4 (diff)
downloadchef-8a0dd4477232713f5afd60a5b856c0430aea5a66.tar.gz
Clear password flags when setting the password
This will clear the password flags when the password is set for this user. This ensures that the user will not be prompted to change their password on next login. Signed-off-by: Aron List <aronotmar@live.nl>
-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