FreeBSD auth
Igor Robul
igorr at speechpro.com
Wed Nov 2 04:50:03 PST 2005
Dan Toganel wrote:
>........................................
>I realize that in FreeBSD master.passwd is the
>replacement for linux shadow file.
>Is there a function to parse it?
>And how can i obtain the hash string?
>Thanks in advance for any help.
>
>
It is not recommended directly use /etc/passwd, you your program need
authentification, then use
PAM (man 3 pam). If you still want ignore PAM, you can use getpwent(3)
family of functions.
More information about the freebsd-questions
mailing list