From owner-freebsd-questions Wed Jun 2 15:40:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mythias.office.cdsnet.net (mythias.office.cdsnet.net [204.118.245.125]) by hub.freebsd.org (Postfix) with SMTP id 646EB14DBA for ; Wed, 2 Jun 1999 15:40:09 -0700 (PDT) (envelope-from mythias@cdsnet.net) Received: (qmail 21750 invoked by uid 1001); 2 Jun 1999 15:34:19 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 2 Jun 1999 15:34:19 -0000 Date: Wed, 2 Jun 1999 15:34:19 +0000 (GMT) From: Don Rose X-Sender: mythias@mythias.office.cdsnet.net To: questions@freebsd.org Subject: Checkpassword from the command line 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 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? checkpassword is supposed to take input on file descriptor 3, but in my ignorance I don't know how to direct the username information to file descriptior 3 for checkpassword to read. Can someone please help me? Thank you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message