1 #Notes for the unused *-ubuntu.pam files; left in for reference
2 #You *may*, in special cases, need to add entries to /etc/securetty:
3 ## Local X displays (allows empty passwords with pam_unix's nullok_secure)
18 #See if just adding yourself to the group works first, before adding the above entries.
22 if ! getent group lightdm >/dev/null; then
23 groupadd --system lightdm
26 if ! getent passwd lightdm >/dev/null; then
27 useradd --system -c "Light Display Manager" -g lightdm -d /var/lib/lightdm -s /sbin/nologin lightdm
30 if ! getent group nopasswdlogin >/dev/null; then
31 groupadd --system nopasswdlogin
34 mkdir /var/lib/lightdm || true
35 chown -R lightdm:lightdm /var/lib/lightdm
36 chmod 0750 /var/lib/lightdm
39 Automatic login can be enabled in /etc/lightdm/lightdm.conf by uncommenting (and completing) the autologin-user and autologin-user-timeout options.
41 You can allow yourself to login without a password at the LightDM prompt by putting yourself in the nopasswdlogin group.
43 Finally: Edit lightdm-gtk-greeter.conf to theme it up!
48 rm -f /etc/lightdm.conf
50 if [ -d /var/log/lightdm ]; then
51 rm -r /var/log/lightdm
54 if [ -d /var/cache/lightdm ]; then
55 rm -r /var/cache/lightdm
58 if [ -d /var/run/lightdm/authority ]; then
59 rm -r /var/run/lightdm/authority
62 if getent passwd lightdm >/dev/null; then
63 if [ -x /usr/sbin/userdel ]; then
67 if getent group lightdm >/dev/null; then
68 if [ -x /usr/sbin/groupdel ]; then
73 if [ -d /var/lib/lightdm ]; then
74 rm -rf /var/lib/lightdm