Added lightdm
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#%PAM-1.0
|
||||
|
||||
auth include system-auth
|
||||
auth required pam_nologin.so
|
||||
|
||||
account include system-auth
|
||||
|
||||
password include system-auth
|
||||
|
||||
session include system-auth
|
||||
|
||||
session optional pam_console.so
|
||||
session optional pam_polkit_console.so
|
||||
@@ -0,0 +1,13 @@
|
||||
#%PAM-1.0
|
||||
auth required pam_env.so
|
||||
auth required pam_tally.so file=/var/log/faillog onerr=succeed
|
||||
auth required pam_shells.so
|
||||
auth required pam_nologin.so
|
||||
auth [success=1 default=ignore] pam_succeed_if.so user ingroup autologin
|
||||
auth required pam_unix.so
|
||||
auth required pam_permit.so
|
||||
-auth optional pam_gnome_keyring.so
|
||||
account include system-local-login
|
||||
password include system-local-login
|
||||
session include system-local-login
|
||||
-session optional pam_gnome_keyring.so auto_start
|
||||
@@ -0,0 +1,21 @@
|
||||
--- lightdm-1.15.0.orig/data/lightdm.conf 2015-05-14 07:12:11.000000000 +0300
|
||||
+++ lightdm-1.15.0/data/lightdm.conf 2016-09-07 06:27:09.913001757 +0300
|
||||
@@ -106,7 +106,7 @@
|
||||
#allow-user-switching=true
|
||||
#allow-guest=true
|
||||
#guest-session=
|
||||
-#session-wrapper=lightdm-session
|
||||
+session-wrapper=/usr/bin/wrapper
|
||||
#greeter-wrapper=
|
||||
#guest-wrapper=
|
||||
#display-setup-script=
|
||||
--- lightdm-1.15.0.orig/data/users.conf 2014-05-19 23:10:03.000000000 +0300
|
||||
+++ lightdm-1.15.0/data/users.conf 2016-09-07 06:27:25.985001874 +0300
|
||||
@@ -9,6 +9,6 @@
|
||||
# hidden-shells = Shells that indicate a user cannot login
|
||||
#
|
||||
[UserList]
|
||||
-minimum-uid=500
|
||||
+minimum-uid=1000
|
||||
hidden-users=nobody nobody4 noaccess
|
||||
hidden-shells=/bin/false /usr/sbin/nologin
|
||||
@@ -0,0 +1,15 @@
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (subject.user == "lightdm") {
|
||||
polkit.log("action=" + action);
|
||||
polkit.log("subject=" + subject);
|
||||
if (action.id.indexOf("org.freedesktop.login1.") == 0) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
if (action.id.indexOf("org.freedesktop.consolekit.system.") == 0) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
if (action.id.indexOf("org.freedesktop.upower.") == 0) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
d /run/lightdm 0711 lightdm lightdm
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
export PATH=/usr/local/sbin/:/usr/sbin/:/sbin/:/usr/local/bin/:/usr/bin/:/bin/ && exec $*
|
||||
|
||||
Reference in New Issue
Block a user