summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-16 19:40:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-16 19:40:28 +0000
commit394bcefbf5aef60e6ef1b82f5581a7180538cab9 (patch)
treed42b2c74a9828bb458f45ab87b96092605cb384e /etc
parentfb2d40a9b43ac9a17a87f837ca7ba0b307ef7e98 (diff)
toor is gone; thanks bibtlt
Diffstat (limited to 'etc')
-rw-r--r--etc/security12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/security b/etc/security
index bb6b660af1e..e66c85f29dc 100644
--- a/etc/security
+++ b/etc/security
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: security,v 1.8 1996/09/15 20:29:41 deraadt Exp $
+# $OpenBSD: security,v 1.9 1996/09/16 19:40:27 deraadt Exp $
#
PATH=/sbin:/usr/sbin:/bin:/usr/bin
@@ -44,7 +44,7 @@ awk -F: '{
printf("Login %s has no password.\n", $1);
if (length($2) != 13 && ($10 ~ /.*sh$/ || $10 == ""))
printf("Login %s is off but still has a valid shell.\n", $1);
- if ($3 == 0 && $1 != "root" && $1 != "toor")
+ if ($3 == 0 && $1 != "root")
printf("Login %s has a user id of 0.\n", $1);
if ($3 < 0)
printf("Login %s has a negative user id.\n", $1);
@@ -62,7 +62,7 @@ if [ -s $OUTPUT ] ; then
column $OUTPUT
fi
-awk -F: '$1 != "toor" { print $1 " " $3 }' $MP | sort -n +1 | tee $TMP1 |
+awk -F: '{ print $1 " " $3 }' $MP | sort -n +1 | tee $TMP1 |
uniq -d -f 1 | awk '{ print $2 }' > $TMP2
if [ -s $TMP2 ] ; then
printf "\n$MP has duplicate user id's.\n"
@@ -242,10 +242,10 @@ for f in $list ; do
fi
done
-# Check for special users with .rhosts/.shosts files. Only root and
-# toor should have .rhosts/.shosts files. Also, .rhosts/.shosts files
+# Check for special users with .rhosts/.shosts files. Only root should
+# have .rhosts/.shosts files. Also, .rhosts/.shosts files
# should not have plus signs.
-awk -F: '$1 != "root" && $1 != "toor" && $1 !~ /^[+-].*$/ && \
+awk -F: '$1 != "root" && $1 !~ /^[+-].*$/ && \
($3 < 100 || $1 == "ftp" || $1 == "uucp") \
{ print $1 " " $6 }' /etc/passwd |
while read uid homedir; do