summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-02-11 17:36:20 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-02-11 17:36:20 +0000
commit543f65bbe27cd5f9579776193725a802fc26a47e (patch)
tree30b39b6ac88978cca4f773ea48c1a3dc41f5e185
parent39de88a671ad3ab0109be82aa6f3ff976fde934e (diff)
downloaddefinitions-543f65bbe27cd5f9579776193725a802fc26a47e.tar.gz
Fix error in linux-pam when try to run sudo commandbaserock/franred/fix-pam-sudo-error
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.
-rw-r--r--strata/foundation.morph1
-rw-r--r--strata/foundation/linux-pam.morph13
2 files changed, 14 insertions, 0 deletions
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