Thursday, May 16, 2013

Using fingerprint for login/su/sudo with Fprint on Archlinux

My Toshiba Portege M600 have a fingerprint feature on it. To enable fingerprint, you can use pam-Fprint software. pam-Fprint  is a simple PAM module which uses libfprint's fingerprint processing and verification functionality for authentication.

Before installing fprint, make sure your hardware is supported, you can see the list on here.

Check lsusb first, on my machines

It's fully supported.

Install Fprint:
$sudo pacman -S fprintd pam libusb imagemagick

$sudo su
#groupadd plugdev
#gpasswd -a yourusername plugdev
#chgrp -R plugdev /dev/bus/usb/

Now set your finger:
For User:
For Su:

Roll your finger like this:

Do this 3 times, until all passed:

Then now modify /etc/pam.d/---

For Login gdm/kdm:
Modify: login
$sudo nano /etc/pam.d/login
add this
auth required
auth sufficient
auth sufficient try_first_pass likeauth nullok
auth required
For another line comment with #

Like this picture:

And for /su, /sudo same as above.
$sudo nano /etc/pam.d/su
$sudo nano /etc/pam.d/sudo

OK. Now try fingerprint. :D

For sudo & su:

And here's my video, login gdm with fingerprint.

Enjoy. ^_^
Share on Facebook
Share on Twitter
Share on Google+