From fa23dea32285d2f9c755fc1f8551203ba30d3367 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 3 Apr 2018 12:08:08 +0200 Subject: [pam-slx-plug] Set proper file mode on generated configs --- .../pam-slx-plug/data/opt/openslx/pam/systemd/create-pam-config | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/modules/pam-slx-plug') diff --git a/core/modules/pam-slx-plug/data/opt/openslx/pam/systemd/create-pam-config b/core/modules/pam-slx-plug/data/opt/openslx/pam/systemd/create-pam-config index 274c5e08..b8e43331 100755 --- a/core/modules/pam-slx-plug/data/opt/openslx/pam/systemd/create-pam-config +++ b/core/modules/pam-slx-plug/data/opt/openslx/pam/systemd/create-pam-config @@ -139,6 +139,7 @@ if grep -q '' "/etc/pam.d/common-auth"; then auth optional pam_cap.so HERE cp -f -- "$tmpfile" "/etc/pam.d/common-auth" + chmod 0644 "/etc/pam.d/common-auth" fi # common-account @@ -154,6 +155,7 @@ if grep -q '' "/etc/pam.d/common-account"; then account required pam_permit.so HERE cp -f -- "$tmpfile" "/etc/pam.d/common-account" + chmod 0644 "/etc/pam.d/common-account" fi # common-session @@ -171,6 +173,7 @@ if grep -q '' "/etc/pam.d/common-session"; then echo "session $line" done >> "$tmpfile" cp -f -- "$tmpfile" "/etc/pam.d/common-session" + chmod 0644 "/etc/pam.d/common-session" fi # @@ -192,6 +195,7 @@ if grep -q '' "/etc/nsswitch.conf"; then netgroup: nis HERE + chmod 0644 "/etc/nsswitch.conf" fi rm -f -- "$tmpfile" -- cgit v1.2.3-55-g7522