- Install packages if they aren't already installed.
sudo apt install libpam-pwdfile whois- Backup the Original PAM Configuration File
sudo cp /etc/pam.d/gdm-password /etc/pam.d/gdm-password_ORIGINAL- Create the Custom PIN File
echo "$(whoami):$(mkpasswd -5)" | sudo tee /etc/custompinfile
sudo chmod 400 /etc/custompinfile- Edit the PAM Configuration File to Enable the PIN file
Use your editor of choice with superuser privileges to edit the /ect/pam.d/gdm-password file to add auth sufficient pam_pwdfile.so pwdfile=/etc/custompinfile to the top of the file, similar to the following:
sudo vim /etc/pam.d/gdm-passwordThe top of your configuration file should look like the following:
#%PAM-1.0
auth sufficient pam_pwdfile.so pwdfile=/etc/custompinfile
Does PIN require Enter to confirm when using this solution?
As asked in those places:
https://askubuntu.com/questions/1086514/how-to-make-ubuntu-immediately-login-when-i-finish-entering-my-pin-without-hitt
https://www.reddit.com/r/linuxmint/comments/p51sn2/login_without_hitting_enter/