Date: Wed, 2 Jun 1999 15:34:19 +0000 (GMT) From: Don Rose <mythias@cdsnet.net> To: questions@freebsd.org Subject: Checkpassword from the command line Message-ID: <Pine.BSF.4.10.9906021530590.21710-100000@mythias.office.cdsnet.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9906021530590.21710-100000>