summaryrefslogtreecommitdiff
path: root/etc/security
diff options
context:
space:
mode:
authorjnemeth <jnemeth@NetBSD.org>2007-03-27 08:37:58 +0000
committerjnemeth <jnemeth@NetBSD.org>2007-03-27 08:37:58 +0000
commitf2e950685da1a0091876369c39441a50e82f64b6 (patch)
tree4fca4adef104c6a6b32f0495901838c0ce5f0efb /etc/security
parentf727e5ef27303b50f98458aae88964c1952cdc35 (diff)
PR/36058 -- fix check for group/other writable home directories from
Jukka Salmi
Diffstat (limited to 'etc/security')
-rw-r--r--etc/security6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/security b/etc/security
index d062d892999..23bbd004348 100644
--- a/etc/security
+++ b/etc/security
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: security,v 1.100 2006/09/26 08:32:40 tron Exp $
+# $NetBSD: security,v 1.101 2007/03/27 08:37:58 jnemeth Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@@ -495,9 +495,9 @@ if checkyesno check_homes; then
awk -v "usergroups=$permit_usergroups" '
$1 != $4 && $4 != "root" \
{ print "user " $1 " home directory is owned by " $4 }
- $2 ~ /^-....w/ && (!usergroups || $5 != $1) \
+ $2 ~ /^d....w/ && (!usergroups || $5 != $1) \
{ print "user " $1 " home directory is group writable" }
- $2 ~ /^-.......w/ \
+ $2 ~ /^d.......w/ \
{ print "user " $1 " home directory is other writable" }' \
> $OUTPUT
if [ -s $OUTPUT ] ; then