View Single Post
Old May 11th, 2006, 1:50 PM   #3
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 855
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
I feel like I'm talking to myself here... :p

I now have the script I described above working, so I can verify a username/password against Unix /etc/passwd or /etc/shadow files.

Does anyone know if it is possible to "re-login" to the shell through a PHP script under a different user? For example, is it possible to re-login under a different username (eg, system("echo $pass | login $user") ), and will this affect subsequent calls to system() be under this username or will the shell be "reset"?
titaniumdecoy is offline   Reply With Quote