Skip to content

Commit 9b531fd

Browse files
author
Sean Nixon
committed
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 <[email protected]>
1 parent ae6b684 commit 9b531fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipes/pam.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
end
9393

9494
execute 'update-pam' do
95-
command 'pam-auth-update --package'
95+
command '/usr/sbin/pam-auth-update --package'
9696
end
9797

9898
# do config for rhel-family

0 commit comments

Comments
 (0)