Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Aug 1997 18:17:00 -0700 (PDT)
From:      clary@elec.uq.edu.au
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   bin/4247: modification to /etc/security for FreeBSD diskless
Message-ID:  <199708080117.SAA12793@hub.freebsd.org>
Resent-Message-ID: <199708080120.SAA12930@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         4247
>Category:       bin
>Synopsis:       modification to /etc/security for FreeBSD diskless
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug  7 18:20:01 PDT 1997
>Last-Modified:
>Originator:     Calry Harridge
>Organization:
University of Queensland
>Release:        FreeBSD 2.2.2-RELEASE
>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.
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708080117.SAA12793>