LightDM passwordless login
mouse 16 · person cloud · link
Last update
2020-03-16
2020
03-16
« — »
  1. Add in /etc/pam.d/lightdm:

    1
    auth  sufficient  pam_succeed_if.so  user ingroup nopasswdlogin
    
  2. Add users to the group nopasswdlogin:

    1
    2
    addgroup nopasswdlogin
    adduser foo nopasswdlogin
    
  3. Show a user list, edit /etc/lightdm/lightdm.conf:

    1
    2
    [Seat:*]
    greeter-hide-users=false
    
  4. Hide unwanted users, edit /etc/lightdm/users.conf:

    1
    hidden-users=nobody user-a user-b
    
  5. Optionally set users avatars:

    1
    2
    convert -quality 80 -scale 256x256 foo.jpg avatar.jpg
    mv avatar.jpg /home/foo/.face
    
  6. restart lightdm

    1
    systemctl restart lightdm
    

Source: askubuntu.com, wiki.archlinux, avatar