I think most applications use PAM these days, right? http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/Linux-PAM_ADG.html However, you can look at the source for `pam_unix.so 'to see how they do it. I looked at pam_unix_passwd.c and followed this:
retval = unix_update_db(pamh, ctrl, user, pass_old, pass_new);
In here , which has many functions with the prefix `pwdb '. Googling discovered this again, which I think is the source of passwd .
As a result, I think libpwdb used to edit these files. Of course, I see that:
#include <pwdb/pwdb_public.h> #include <pwdb/pwdb_shadow.h>
But find . -name "*pwdb*" 2>/dev/null find . -name "*pwdb*" 2>/dev/null has not yet found anything on my system.
user257111
source share