Fix PR 5068 - scanning ~user/.rhosts files on NFS mounted home

directories with -maproot=nobody on the server. The argument to be
made is that if NetBSD's root can't read these files, it shouldn't
try to check them.
This commit is contained in:
fair 1999-03-16 06:18:17 +00:00
parent ed09809062
commit 7153b55a87
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: security,v 1.34 1999/02/18 18:53:33 abs Exp $
# $NetBSD: security,v 1.35 1999/03/16 06:18:17 fair Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@ -322,7 +322,7 @@ if checkyesno check_rhosts; then
fi
while read uid homedir; do
if [ -f ${homedir}/.rhosts ] && \
if [ -f ${homedir}/.rhosts -a -r ${homedir}/.rhosts ] && \
egrep '\+' ${homedir}/.rhosts > /dev/null ; then
printf "$uid: + in .rhosts file.\n"
fi