From 9b531fd79ec6489267732110885ca29bc0af1253 Mon Sep 17 00:00:00 2001 From: Sean Nixon Date: Mon, 25 Feb 2019 14:52:52 -0600 Subject: [PATCH] Use full path for executing pam-auth-update On Debian-based distros, pam-auth-update is located at /usr/sbin/pam-auth-update. However, when running chef-client as a cron job, /usr/sbin may not be available on the path, resulting in an error. This affects nodes using the Azure Chef extension, among others. Addresses Issue #237 Signed-off-by: Sean Nixon --- recipes/pam.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/pam.rb b/recipes/pam.rb index dce11b2b..eb3a9877 100644 --- a/recipes/pam.rb +++ b/recipes/pam.rb @@ -92,7 +92,7 @@ end execute 'update-pam' do - command 'pam-auth-update --package' + command '/usr/sbin/pam-auth-update --package' end # do config for rhel-family