From 543f65bbe27cd5f9579776193725a802fc26a47e Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Wed, 11 Feb 2015 17:36:20 +0000 Subject: Fix error in linux-pam when try to run sudo command sudo command in an openstack system fails with the following error message: # sudo -u neutron echo sudo: unable to initialize PAM: No such file or directory Adding the "other" file in /etc/pam.d fixes this error. --- strata/foundation/linux-pam.morph | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 strata/foundation/linux-pam.morph (limited to 'strata/foundation') diff --git a/strata/foundation/linux-pam.morph b/strata/foundation/linux-pam.morph new file mode 100644 index 00000000..27d0a8a3 --- /dev/null +++ b/strata/foundation/linux-pam.morph @@ -0,0 +1,13 @@ +name: linux-pam +kind: chunk +build-system: autotools +post-install-commands: +# sudo command is expecting this file. +- | + install -D -m 0644 /proc/self/fd/0 <<'EOF' "$DESTDIR"/etc/pam.d/other + #%PAM-1.0 + auth required pam_unix.so + account required pam_unix.so + password required pam_unix.so + session required pam_unix.so + EOF -- cgit v1.2.1