script to located suid gid

From: Robert Lee Binkley (rbinkl_at_COMCAST.NET)
Date: 01/05/04

  • Next message: Paul. Vanchope: "weird problem when doing mklvcopy for the LV"
    Date:         Sun, 4 Jan 2004 20:38:50 -0600
    To: aix-l@Princeton.EDU
    
    

    #Find all the SETUID/SETGID programs on your system
    #!bin/sh
    #find-setuid
    SUIDFILES=/etc/sfiles
    TEMPFILE=/tmp/$0.$$
    find / -type f -a \( -perm 2000 -o -perm 4000 \) -print > $TEMPFILE

    if [ ! -f $SUIDFILES ]; then
            echo "$0: creating list of SUID/SGID files in $SUIDFILES"
                    mv $TEMPFILE $SUIDFILES
                            chmod 400 $SUIDFILES
                            else
                            echo "$0: differences between current and past SUID/SGID files:"
            diff $TEMPFILE $SUIDFILES
            fi


  • Next message: Paul. Vanchope: "weird problem when doing mklvcopy for the LV"