Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Ubuntu 11.10. I went to the following URL to download the software Pam Face Authentication and downloaded the version for natty narhwall.

I installed the software using the following commands:

sudo apt-get install build-essential cmake qt4-qmake libx11-dev libcv-dev libcvaux-dev libhighgui2.1 libhighgui-dev libqt4-dev libpam0g-dev checkinstall
cd /tmp && wget
sudo add-apt-repository ppa:antonio.chiurazzi  
sudo apt-get update    
sudo apt-get install pam-face-authentication  

cat << EOF | sudo tee /usr/share/pam-configs/face_authentication /dev/null

**Name:** face_authentication profile  
**Default:** yes  
**Priority:** 900   
**Auth-Type:** Primary  
**Auth:** [success=end default=ignore] enableX 

 sudo pam-auth-update --package face_authentication

The software installed and I can run the qt-facetrainer. But the problem is when I restarted my system, I saw that the default login screen is appearing where I should put my password to login. The webcam is not starting at all. And I cannot login with my face. Which means I think that pam face authentication programme is not starting at all.

Please let me know how I can login with my face using pam face authentication programme.

share|improve this question
2 would be a good place to start – Ringtail Mar 28 '12 at 18:10 as a bug tracker – Ringtail Mar 28 '12 at 18:11
What login manager are you using. Most of those libraries are QT based. I suspect it's integrated with KDM and not LightDM. If it's still not working it looks like this bug – RobotHumans Apr 8 '12 at 6:20

Installation for PAM face authentication

First open a terminal, then proceed with the following commands:

sudo add-apt-repository ppa:antonio.chiurazzi
sudo apt-get update
sudo apt-get install pam-face-authentication 

The commands above add the Ubuntu repository for pam-face-authentication to your package source list and then the plugin is actually installed.


Now it's necessary to learn some face figures to the system. Therefore start the facetrainer app from your start menu and follow the indicated instructions.

For being able to login using face authentication, the module must be enabled first. So you have to execute the following in your terminal (at once):

cat << EOF | sudo tee /usr/share/pam-configs/face_authentication /dev/null
Name: face_authentication profile
Default: yes
Priority: 900
Auth-Type: Primary
[success=end default=ignore] enableX

By this action, the file /usr/share/pam-configs/face_authentication is created and contains the plugin information.

With the next command you can enable or disable the plugin:

sudo pam-auth-update --package face_authentication


share|improve this answer
There are no Oneiric builds for pam-face-authentication in the antonio.chiurazzi ppa, so this would not work. The latest ubuntu with the package is Natty. I don't see that anyone has Oneiric builds. – Veazer Apr 18 '12 at 22:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.