Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Sep 1999 10:47:34 +1000
From:      Peter Jeremy <jeremyp@gsmx07.alcatel.com.au>
To:        Doug@gorean.org
Cc:        FreeBSD-bugs@FreeBSD.ORG
Subject:   Re: bin/13909: /etc/security problems: IPFIREWALL and passwd comments
Message-ID:  <99Sep23.104503est.40341@border.alcanet.com.au>
In-Reply-To: <Pine.BSF.4.10.9909221722370.31986-100000@dt014nb6.san.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Doug <Doug@gorean.org> wrote:
> The current awk bit ignores blank lines so I don't see that as a
>problem. 

Actually, as Sheldon pointed out (and I just confirmed), it doesn't.
The simplest fix seems to be to make the awk script:

awk -F: 'NF > 1 && $1 !~ /^[#+]/ && $2=="" {print $0}' /etc/master.passwd

Peter


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99Sep23.104503est.40341>