From owner-freebsd-questions Fri Jun 4 10:39:49 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id E56BA14E82 for ; Fri, 4 Jun 1999 10:39:47 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id KAA28113; Fri, 4 Jun 1999 10:39:46 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Fri, 4 Jun 1999 10:39:45 -0700 (PDT) From: Doug White To: Don Rose Cc: questions@FreeBSD.ORG Subject: Re: Checkpassword from the command line In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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