freebsd-hackers Digest, Vol 156, Issue 2

Mr CW mrcomputerwiz at hotmail.com
Tue Mar 14 13:30:49 UTC 2006


>...but if you think that you need to modify pam_get_authtok.c to
>change how passwd behaves, you're almost certainly on the wrong track.

My appologies and thank you for pointing out my error.  I have been walking 
the source tree trying to find out how different programs work and, I'll 
admit, passwd is one of the first few programs.  I had believed that 
pam_get_authtok.c was tied into passwd through the many different includes 
in the program tree.  Specifically, I want to learn how passwd works from 
the point where it prompts for the password, where it actually receives the 
input, how it passes the password off for encryption, and when it finally 
obtains the encrypted value.

The lower portion of ...get_authtok.c appeared to me where this happens, 
when the response is stored in &resp, retyped into &resp2 to ensure the two 
are the same, then sent to pam_set_item() for encryption (?).  The way I am 
reading it, &resp points to the unencrypted password string, but I could be 
wrong.

Thank you for your previous tips on recompiling pam.

J. Hunt

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



More information about the freebsd-hackers mailing list