From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: neil.hoare@alcatel.co.uk Newsgroups: gmane.os.tru64.managers Subject: SUMMARY : perl pwpolicy problem Date: Tue, 17 Jun 2003 09:06:49 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1055838148 17314 80.91.224.249 (17 Jun 2003 08:22:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2003 08:22:28 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Jun 17 10:22:26 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19SBjQ-0004UT-00 for ; Tue, 17 Jun 2003 10:22:20 +0200 Original-Received: (qmail 9360 invoked by uid 5); 17 Jun 2003 08:22:06 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 9351 invoked by uid 49493); 17 Jun 2003 08:22:06 -0000 Original-Received: from neil.hoare@alcatel.co.uk by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-3.2/5.0):. Processed in 1.260456 secs); 17 Jun 2003 08:22:06 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 17 Jun 2003 08:22:04 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HGM00KQT9WQNU@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 17 Jun 2003 04:22:03 -0400 (EDT) Original-Received: from mail.alcatel.co.uk (mail.alcatel.co.uk [208.178.18.30]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HGM002CF9WNGK@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 17 Jun 2003 04:22:01 -0400 (EDT) Original-Received: from gbmail01.netfr.alcatel.fr (IDENT:root@relay01.net.alcatel.co.uk [127.0.0.1]) by mail.alcatel.co.uk (8.11.6/8.9.3) with ESMTP id h5H87S209711 for ; Tue, 17 Jun 2003 09:07:28 +0100 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001 X-MIMETrack: Serialize by Router on GBMAIL01/GB/ALCATEL(Release 5.0.11 |July 24, 2002) at 06/17/2003 09:07:28 Xref: main.gmane.org gmane.os.tru64.managers:4564 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4564 The original posting was: > Hello Managers, > > I've written perl pwpolicy script, as below, which checks simply that an > entered password contains a mix of alphanumeric characters. > > If I run the script in isolation, and then check the result using "echo > $?", then i see exit codes 0 & 1 as I would expect, but when called via the > password command i just get an illegal password error, for anything entered > at all. > > Other details are 4.0f pk7, Enhanced security. > Thanks to: Tom Webster and Chris Adams for the perl insight, and; Selcuk Karaca and Mark Deiss for the tty clarification. I raised a call to HP regarding this in parallel, and was recommended the C code as suggested by Spider Boardman, available at: http://users.rcn.com/spiderb/sec/site-pwpolicy.c.txt Cheers N