Date: Thu, 24 Sep 1998 13:42:10 +0000 (GMT) From: Andrzej Szydlo <andrzej@maciek.gv.edu.pl> To: freebsd-security@FreeBSD.ORG Subject: Checking for uids 0 in /etc/security Message-ID: <Pine.BSF.3.96.980924133020.1141A-100000@maciek.gv.edu.pl>
next in thread | raw e-mail | index | archive | help
Hi,
I've just noticed that /etc/security checks for strings "0" in the uid
field of the master.passwd file.
awk 'BEGIN {FS=":"} $3=="0" {print $1, $3}' /etc/master.passwd
^^^^^^
In this way it doesn't notice entries like this:
myroot:xxxx:000:000:....
while such an entry still gives uid 0.
Changing this line to:
awk 'BEGIN {FS=":"} $3==0 {print $1, $3}' /etc/master.passwd
^^^^^
solves the problem.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980924133020.1141A-100000>
