Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jun 1999 10:39:45 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Don Rose <mythias@cdsnet.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Checkpassword from the command line
Message-ID:  <Pine.BSF.4.03.9906041039310.12183-100000@resnet.uoregon.edu>
In-Reply-To: <Pine.BSF.4.10.9906021530590.21710-100000@mythias.office.cdsnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2 Jun 1999, Don Rose wrote:

> I am having quite a bit of trouble trying to use qmail's checkpassword
> from the command line.  I am using it in a perl script that needs to
> verify user's passwords, but doesn't have root access.  My sysadmin has
> said that checkpassword is what I need to use but for the life of me I
> haven't figured it out.  On qmail's homepage, it says :
> 
> Mark Delany has a clever way to test your checkpassword with a bit of
> command line re-direction. For example, with username fred, password
> bloggs, 
> 
> printf "fred\0bloggs\0Y123456\0" | /bin/checkpassword /bin/id 3<&0
> 
> will execute /bin/id if the password is right. 
> 
> 
> When I try to use that method, it tells me "Missing name for redirect".
> Why?

Try it under /bin/sh.

Doug White                               
Internet:  dwhite@resnet.uoregon.edu    | FreeBSD: The Power to Serve
http://gladstone.uoregon.edu/~dwhite    | www.freebsd.org



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.03.9906041039310.12183-100000>