summaryrefslogtreecommitdiff
path: root/strata/foundation
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 /strata/foundation
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.
Diffstat (limited to 'strata/foundation')
-rw-r--r--strata/foundation/linux-pam.morph13
1 files changed, 13 insertions, 0 deletions
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