HaveF / pam-face-authentication

Automatically exported from code.google.com/p/pam-face-authentication
0 stars 0 forks source link

Path file screwed up after install #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install on Ubuntu 10.04 according to this tutorial: 
http://pam-face-authentication.org/wiki/index.php?title=Installation
2. Run qt-facetrainer
3. Train face and save the files, log out, log back in.

What is the expected output? What do you see instead?
When I try to run anything from /sbin, /usr/sbin or /usr/local/sbin I get a 
path error. Also, the output of "echo $PATH" is "/usr/local/bin:/usr/bin:/bin"

What version of the product are you using? On what operating system?
I am using PAM face authentication 0.3

Please provide any additional information below.
I am running Ubuntu 10.04.1 32 Bit.

Original issue reported on code.google.com by hum.rich...@gmail.com on 13 Sep 2010 at 11:43

GoogleCodeExporter commented 9 years ago
HELP ME PLEASE!!!

Original comment by hum.rich...@gmail.com on 16 Sep 2010 at 12:07

GoogleCodeExporter commented 9 years ago
I have the same problem with Ubuntu 10.10

The problem is not with the install. This issue only happens if you log in with 
your face. Then the PATH variable of the gnome session is changed to just 
"/usr/local/bin:/usr/bin:/bin", so programs on other paths will not work.

If your face authentication fails and you log in with your password then the 
PATH is not changed and everything works fine. 

The fastest way to solve this issue is to get rid of face authentication on 
login.

I checked the PATH with this two ways:

-When logged in with my face:
$cat /etc/enviroment
PATH="/usr/local/bin:/usr/bin:/bin"
$echo $PATH
/usr/local/bin:/usr/bin:/bin

-When logged in with my password:
$cat /etc/enviroment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
$echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

I also checked the files ~/.bashrc /etc/profile/ /usr/include/paths.h 
/etc/bash.bashrc and I couldn't found what pam-face-authentication is changing.
I also added the correct path to all this files and the problem was still 
alive. So pam-face-authentication must change the PATH after those files are 
executed.

The only way you can get the correct PATH when you log in with your face is by 
changing the enviroment PATH by terminal (or in the ~/.bashrc) but then you 
have to launch all the programs by terminal, menus will not work.

Original comment by dgvalde on 21 Oct 2010 at 8:49