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.morph | 1 + strata/foundation/linux-pam.morph | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 strata/foundation/linux-pam.morph diff --git a/strata/foundation.morph b/strata/foundation.morph index e3bebe05..245f5c2c 100644 --- a/strata/foundation.morph +++ b/strata/foundation.morph @@ -74,6 +74,7 @@ chunks: build-depends: - libgpg-error - name: linux-pam + morph: strata/foundation/linux-pam.morph repo: upstream:linux-pam ref: b1521c97e73b10469f7b34c0571d51c647eca83c unpetrify-ref: Linux-PAM-1.1.8 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