Subject: Re: misc/14272: useradd and /etc/security interact poorly
To: None <sen@eccosys.com>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 10/22/2001 14:50:08
[ On Monday, October 22, 2001 at 10:27:23 (+0900), sen@eccosys.com wrote: ]
> Subject: Re: misc/14272: useradd and /etc/security interact poorly
>
> This makes sense to me -- but who will write it ;-)

I did it once for SSH-1.2.25 or so, but that was in C of course....  :-)

In the good old days before MD5, etc., it was quite a simple check in awk:

	pw_pwd = $2;
	if (pw_pwd == "")
		printf("%s: has no password!\n", $1);
	else if (length(pw_pwd) != 13 || split(pw_pwd, j, /[.\/0-Z]/) != 13)
		printf("%s: is disabled!\n", $1);

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>     <woods@robohack.ca>
Planix, Inc. <woods@planix.com>;   Secrets of the Weird <woods@weird.com>