summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSimon Rettberg2018-04-03 12:08:08 +0200
committerSimon Rettberg2018-04-03 12:08:08 +0200
commitfa23dea32285d2f9c755fc1f8551203ba30d3367 (patch)
tree94bbd8d1103a22aee1c1087e021285817adc1607 /core
parent[dnbd3-proxy-mode] Run setup before spawning getty (diff)
downloadmltk-fa23dea32285d2f9c755fc1f8551203ba30d3367.tar.gz
mltk-fa23dea32285d2f9c755fc1f8551203ba30d3367.tar.xz
mltk-fa23dea32285d2f9c755fc1f8551203ba30d3367.zip
[pam-slx-plug] Set proper file mode on generated configs
Diffstat (limited to 'core')
-rwxr-xr-xcore/modules/pam-slx-plug/data/opt/openslx/pam/systemd/create-pam-config4
1 files changed, 4 insertions, 0 deletions
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 '<slx-autogen>' "/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 '<slx-autogen>' "/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 '<slx-autogen>' "/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 '<slx-autogen>' "/etc/nsswitch.conf"; then
netgroup: nis
HERE
+ chmod 0644 "/etc/nsswitch.conf"
fi
rm -f -- "$tmpfile"