summaryrefslogtreecommitdiff
path: root/source/kde
diff options
context:
space:
mode:
Diffstat (limited to 'source/kde')
-rw-r--r--source/kde/build/kde-workspace2
-rw-r--r--source/kde/doinst.sh/kde-workspace3
-rw-r--r--source/kde/post-install/kde-workspace.post-install3
-rw-r--r--source/kde/post-install/kde-workspace/config/kde-np.pamd10
4 files changed, 17 insertions, 1 deletions
diff --git a/source/kde/build/kde-workspace b/source/kde/build/kde-workspace
index 7f8f011e..45a4fb75 100644
--- a/source/kde/build/kde-workspace
+++ b/source/kde/build/kde-workspace
@@ -1 +1 @@
-7
+8
diff --git a/source/kde/doinst.sh/kde-workspace b/source/kde/doinst.sh/kde-workspace
index 796b2956..91bd6bc6 100644
--- a/source/kde/doinst.sh/kde-workspace
+++ b/source/kde/doinst.sh/kde-workspace
@@ -18,6 +18,9 @@ config etc/kde/kdm/kdmrc.new
if [ -r etc/pam.d/kde.new ]; then
config etc/pam.d/kde.new
fi
+if [ -r etc/pam.d/kde-np.new ]; then
+ config etc/pam.d/kde-np.new
+fi
if [ -x usr/bin/update-desktop-database ]; then
usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
diff --git a/source/kde/post-install/kde-workspace.post-install b/source/kde/post-install/kde-workspace.post-install
index 8dbc910d..915587ee 100644
--- a/source/kde/post-install/kde-workspace.post-install
+++ b/source/kde/post-install/kde-workspace.post-install
@@ -45,6 +45,9 @@ if [ -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then
cp -a $CWD/post-install/kde-workspace/config/kde.pamd $PKG/etc/pam.d/kde.new
chown root:root $PKG/etc/pam.d/kde.new
chmod 644 $PKG/etc/pam.d/kde.new
+ cp -a $CWD/post-install/kde-workspace/config/kde-np.pamd $PKG/etc/pam.d/kde-np.new
+ chown root:root $PKG/etc/pam.d/kde-np.new
+ chmod 644 $PKG/etc/pam.d/kde-np.new
fi
# Move the KDM files someplace FHS compliant:
diff --git a/source/kde/post-install/kde-workspace/config/kde-np.pamd b/source/kde/post-install/kde-workspace/config/kde-np.pamd
new file mode 100644
index 00000000..01352824
--- /dev/null
+++ b/source/kde/post-install/kde-workspace/config/kde-np.pamd
@@ -0,0 +1,10 @@
+#%PAM-1.0
+auth requisite pam_nologin.so
+auth required pam_env.so
+
+auth required pam_succeed_if.so uid >= 1000 quiet
+auth required pam_permit.so
+
+account include system-auth
+password include system-auth
+session include system-auth