Re: FreeBSD auth

2005-11-03 Thread Dan Toganel
--- Igor Robul [EMAIL PROTECTED] wrote: 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. Thanks for your interest. Well, the problem with

Re: FreeBSD auth

2005-11-03 Thread Lowell Gilbert
Dan Toganel [EMAIL PROTECTED] writes: --- Igor Robul [EMAIL PROTECTED] wrote: 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. Thanks for

Re: FreeBSD auth

2005-11-03 Thread Dan Toganel
--- Lowell Gilbert [EMAIL PROTECTED] wrote: getpwent() *does* give you the encrypted password. It's the second field in the structure passed back. Well, i did: includesys/types.h #includepwd.h extern int errno; int main() { char *name=dan; struct

Re: FreeBSD auth

2005-11-03 Thread Igor Robul
Dan Toganel wrote: --- Lowell Gilbert [EMAIL PROTECTED] wrote: getpwent() *does* give you the encrypted password. It's the second field in the structure passed back. Well, i did: includesys/types.h #includepwd.h extern int errno; int

Re: [solved] FreeBSD auth

2005-11-03 Thread Dan Toganel
Sorry,me stupid. Of course, i wasn't root. Thanks for help. __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list

FreeBSD auth

2005-11-02 Thread Dan Toganel
Hello list, I'm a newbie in freebsd programming and i need some docs hints in order to port a program from linux to FreeBSD. The piece of code is: .. struct spwd* shadow=getspnam(name); if(!shadow) { . } char

Re: FreeBSD auth

2005-11-02 Thread Igor Robul
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,