OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Short /etc/security addition
From: Giorgos Keramidas (charonhades.hell.gr)
Date: Fri Feb 04 2000 - 19:02:28 CST


On Fri, Feb 04, 2000 at 12:24:52PM -0500, Garrett Wollman wrote:
> We found this useful:
>
> --- /usr/src/etc/security Tue Dec 21 04:46:02 1999
> +++ /etc/security Fri Jan 28 21:25:32 2000
> -56,6 +56,10
> echo "checking for passwordless accounts:"
> awk -F: 'NF > 1 && $1 !~ /^[#+]/ && $2=="" {print $0}' /etc/master.passwd
>
> +separator
> +echo "checking for su usage:"
> +zcat /var/log/messages.0.gz | fgrep ' su: ' | sed -e 's,^, ,'

You can get pretty the same output with:

    zcat /var/log/messages.0.gz | sed -n -e '/ su: / s,^, ,p'

-- 
Giorgos Keramidas, < keramida  ceid . upatras . gr >
For my public PGP key: finger keramidadiogenis.ceid.upatras.gr
PGP fingerprint, phone and address in the headers of this message.

To Unsubscribe: send mail to majordomoFreeBSD.org with "unsubscribe freebsd-security" in the body of the message