Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path file screwed up after install #50

Open
GoogleCodeExporter opened this issue Mar 21, 2016 · 2 comments
Open

Path file screwed up after install #50

GoogleCodeExporter opened this issue Mar 21, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

HELP ME PLEASE!!!

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

@GoogleCodeExporter
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant