From 2499c667692c9f240c6543f2a0702a1a21ee0c2b Mon Sep 17 00:00:00 2001 From: giresun28 Date: Thu, 13 Oct 2016 04:15:34 +0300 Subject: [PATCH 1/2] =?UTF-8?q?sddm.g=C3=BCncellendi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- talimatname/genel/sddm/sddm.kos-kur | 8 ++++++-- talimatname/genel/sddm/sddm.kur-kos | 5 +++-- talimatname/genel/sddm/talimat | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/talimatname/genel/sddm/sddm.kos-kur b/talimatname/genel/sddm/sddm.kos-kur index cefc29022..71409313f 100644 --- a/talimatname/genel/sddm/sddm.kos-kur +++ b/talimatname/genel/sddm/sddm.kos-kur @@ -3,10 +3,14 @@ echo "Lxdm sistemden kaldırılıyor." mps -s lxdm if ! getent group sddm > /dev/null; then - groupadd -g 64 --system sddm + groupadd -g 64 sddm fi if ! getent passwd sddm > /dev/null; then - useradd -c "Simple Desktop Display Manager" --system -d /var/lib/sddm -s /usr/bin/nologin -u 64 -g sddm sddm + useradd -c "Simple Desktop Display Manager" \ + -d /var/lib/sddm \ + -u 64 -g sddm \ + -s /bin/false sddm + passwd -l sddm > /dev/null fi diff --git a/talimatname/genel/sddm/sddm.kur-kos b/talimatname/genel/sddm/sddm.kur-kos index 6ad79a518..7b0e7d72e 100644 --- a/talimatname/genel/sddm/sddm.kur-kos +++ b/talimatname/genel/sddm/sddm.kur-kos @@ -1,3 +1,4 @@ -sed -i "s/^id:[3-5]/id:5/" /etc/inittab +/etc/rc.d/init.d/sddm start +cp -v /etc/inittab{,-orig} && +sed -i '/initdefault/ s/3/5/' /etc/inittab echo "Init default set to 5 in the /etc/inittab file" -ln -s /etc/init.d/sddm /etc/rc.d/rc5.d/S90sddm diff --git a/talimatname/genel/sddm/talimat b/talimatname/genel/sddm/talimat index 4e9ae906d..eee84678e 100644 --- a/talimatname/genel/sddm/talimat +++ b/talimatname/genel/sddm/talimat @@ -1,7 +1,7 @@ # Description : The SDDM package contains a lightweight display manager written in Qt and QML. # URL: https://www.kde.org/ # Packager: alihan-ozturk28@hotmail.com -# Depends on: cmake qt5 upower consolekit2 +# Depends on: cmake kf5-extra-cmake-modules qt5 upower consolekit2 name=sddm release=1 From f06944f281ae8f41e9659b9a609aa7081f6880e2 Mon Sep 17 00:00:00 2001 From: giresun28 Date: Thu, 13 Oct 2016 04:33:54 +0300 Subject: [PATCH 2/2] =?UTF-8?q?sddm.g=C3=BCncellendi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- talimatname/genel/sddm/sddm.conf | 4 ++-- talimatname/genel/sddm/talimat | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/talimatname/genel/sddm/sddm.conf b/talimatname/genel/sddm/sddm.conf index 608e05408..e89ff750b 100644 --- a/talimatname/genel/sddm/sddm.conf +++ b/talimatname/genel/sddm/sddm.conf @@ -43,7 +43,7 @@ DefaultPath=/bin:/usr/bin:/usr/sbin:/usr/local/bin # Hidden shells # Users with these shells as their default won't be listed -HideShells= +HideShells=/usr/sbin/nologin,/bin/false,/bin/sync # Hidden users HideUsers= @@ -52,7 +52,7 @@ HideUsers= MaximumUid=65000 # Minimum user id for displayed users -MinimumUid=1000 +MinimumUid=0 # Remember the session of the last successfully logged in user RememberLastSession=true diff --git a/talimatname/genel/sddm/talimat b/talimatname/genel/sddm/talimat index eee84678e..7b2cf5c04 100644 --- a/talimatname/genel/sddm/talimat +++ b/talimatname/genel/sddm/talimat @@ -40,6 +40,7 @@ auth requisite pam_nologin.so auth required pam_env.so auth required pam_succeed_if.so uid >= 1000 quiet +auth sufficient pam_succeed_if.so user ingroup nopasswdlogin auth include system-auth account include system-account