Re: verifying password

From: Maxim Yegorushkin (maxim.yegorushkin_at_gmail.com)
Date: 10/25/05


Date: 25 Oct 2005 02:52:45 -0700


prasi wrote:
> I want to verify the password of a user by accepting the password and
> comparing with the entry in the /etc/shadow file .But I a, getting an
> error
> The following code is giving one error
> /home/training/prasanna/unix system programming/testpas.c:19: undefined
> reference to `crypt'
> collect2: ld returned 1 exit status

man crypt

...

       Programs using this function must be linked with -lcrypt.



Relevant Pages

  • Re: verifying password
    ... Maxim Yegorushkin wrote: ... > prasi wrote: ... >> I want to verify the password of a user by accepting the password and ...
    (comp.unix.programmer)
  • Re: verifying the password
    ... prasi wrote: ... comparing with the entry in the /etc/shadow file .But I a, ... reference to `crypt' ... You need to link with the crypt library. ...
    (comp.lang.c)
  • crypt() function
    ... Is there a function like crypt() of PHP. ... I want to verify a password using ... you can easily compare the hashes from db and cryptfunction. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: crypt() function
    ... > Is there a function like cryptof PHP. ... I want to verify a password using ... > you can easily compare the hashes from db and crypt() function. ...
    (microsoft.public.dotnet.languages.vb)