summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-29 22:15:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-29 22:15:59 +0000
commit378e42bc991193c4f7827c892fef83d3ac6d995c (patch)
tree6566f92b4696a37fc5488d8e0a15a60ad8191bfe
parente5a123074fd0890cfecfdd9ce9e8c94100b654aa (diff)
oops, detect blowfish-a as OK; yensid@imsa.edu, PR#321
-rw-r--r--etc/security4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/security b/etc/security
index 0f7060200ec..89c7b3d8ec3 100644
--- a/etc/security
+++ b/etc/security
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: security,v 1.21 1997/09/02 06:46:42 deraadt Exp $
+# $OpenBSD: security,v 1.22 1997/09/29 22:15:58 deraadt Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@@ -43,7 +43,7 @@ awk -F: '{
printf("Login %s has more than 8 characters.\n", $1);
if ($2 == "")
printf("Login %s has no password.\n", $1);
- if ((length($2) != 13 && ($10 ~ /.*sh$/ || $10 == "")) && ($2 !~ /^\$[0-9]+\$/) && system("if grep -q \"^"$1" \" /etc/skeykeys || test -d "$9"/.ssh -a ! -O "$9"/.ssh ; then exit 1 ; fi ; for i in .rhosts .shosts .klogin ; do test -s "$9"/$i -a ! -O "$9"/$i && exit 1 ; done ; exit 0") != 0)
+ if ((length($2) != 13 && ($10 ~ /.*sh$/ || $10 == "")) && ($2 !~ /^\$[0-9a-f]+\$/) && system("if grep -q \"^"$1" \" /etc/skeykeys || test -d "$9"/.ssh -a ! -O "$9"/.ssh ; then exit 1 ; fi ; for i in .rhosts .shosts .klogin ; do test -s "$9"/$i -a ! -O "$9"/$i && exit 1 ; done ; exit 0") != 0)
printf("Login %s is off but still has a valid shell.\n", $1);
if ($3 == 0 && $1 != "root")
printf("Login %s has a user id of 0.\n", $1);