--- 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
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
--- 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
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
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
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
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,