From owner-freebsd-questions Fri Sep 11 07:57:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA09834 for freebsd-questions-outgoing; Fri, 11 Sep 1998 07:57:54 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from netra.graphnet.com (netra.graphnet.com [192.206.112.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA09828 for ; Fri, 11 Sep 1998 07:57:52 -0700 (PDT) (envelope-from romank@graphnet.com) Received: from graphnet.com (roman.graphnet.com [192.206.112.93]) by netra.graphnet.com (8.8.8/8.8.6) with ESMTP id KAA04567 for ; Fri, 11 Sep 1998 10:57:28 -0400 (EDT) Message-ID: <35F93AC5.479E89D5@graphnet.com> Date: Fri, 11 Sep 1998 10:59:17 -0400 From: Roman Katsnelson Organization: Graphnet, Inc X-Mailer: Mozilla 4.05 [en] (WinNT; U) MIME-Version: 1.0 To: "q's" Subject: manual password encryption Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I would like to be able to verify user privileges with a web GUI. Instead of keeping a separate file with unencrypted passwords, though, I just wanna be able to verify them from passwd, for example: the $QUERY_STRING is blah.cgi?name=johnny&pwd=bgoode I wanna match this to: grep -e "$name" /etc/passwd | cut -d":" -f1 # will yield user name grep -e "$name" /etc/passwd | cut -d":" -f2 # will yield password can I manually encrypt the value of $pwd in the above example so that it matches the grep | cut output? I hope I explained that ok. Thanks IA, Roman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message