From nobody  Thu Aug  7 18:17:00 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.5/8.8.5) id SAA12793;
          Thu, 7 Aug 1997 18:17:00 -0700 (PDT)
Message-Id: <199708080117.SAA12793@hub.freebsd.org>
Date: Thu, 7 Aug 1997 18:17:00 -0700 (PDT)
From: clary@elec.uq.edu.au
To: freebsd-gnats-submit@freebsd.org
Subject: modification to /etc/security for FreeBSD diskless
X-Send-Pr-Version: www-1.0

>Number:         4247
>Category:       bin
>Synopsis:       modification to /etc/security for FreeBSD diskless
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug  7 18:20:01 PDT 1997
>Closed-Date:    Wed Jun 28 03:26:24 PDT 2000
>Last-Modified:  Wed Jun 28 03:27:34 PDT 2000
>Originator:     Calry Harridge
>Release:        FreeBSD 2.2.2-RELEASE
>Organization:
University of Queensland
>Environment:
c4:/etc # uname -a
FreeBSD c4.pc.elec.uq.edu.au 2.2.2-RELEASE FreeBSD 2.2.2-RELEASE #0: Tue Jun 10 12:03:20 EST 1997     clary@s6.pc.elec.uq.edu.au:/usr/src/sys/compile/DISKLESS  i386

>Description:
running /etc/security on a diskless host causes the command
	set $MP
to be
	set
which prints the set environment
	+ set
	N=nohup.out
	MACHTYPE=i386
	USER=clary
	........
rather than the intention to set up a list of arguments
>How-To-Repeat:
run 
	/etc/security
from a diskless machine
>Fix:
Add a test on the string $MP

# don't do if diskless, CH 8Aug97
if [ -n "$MP" ]
then
    set $MP
    while test $# -ge 1; do
        mount=$1
        shift
        find $mount -xdev -type f \
                \( -perm -u+x -or -perm -g+x -or -perm -o+x \) \
                \( -perm -u+s -or -perm -g+s \) -a -exec ls -lgTd {} ";"
    done > $TMP
fi

NOTE I have also not used the xargs program "as in the original code"
because in some instances it fails to find suid and sgid files.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: nbm 
State-Changed-When: Wed Jun 28 03:26:24 PDT 2000 
State-Changed-Why:  
Different code is used here now, and it handles the diskless case. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=4247 
>Unformatted:
