From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?B?Q+lzYXIgU29sZXI=?= Subject: Re: find Date: Mon, 28 Jul 2003 09:53:08 +0200 Sender: linux-admin-owner@vger.kernel.org Message-ID: <326522203.20030728095308@euskalnet.net> References: <000401c354d4$14dc07b0$baf003ca@magnus> Reply-To: =?ISO-8859-1?B?Q+lzYXIgU29sZXI=?= Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <000401c354d4$14dc07b0$baf003ca@magnus> List-Id: Content-Type: text/plain; charset="iso-8859-1" To: Mikael Chambon Cc: linux-admin@vger.kernel.org Hi Mikael, sure it could do better, but as a quick answer: ls -ad /* | grep -v -e dev -e proc | while read dir; do find /$dir -type f -perm -4000 -print done hope this help you... Monday, July 28, 2003, 1:41:07 AM, you wrote: MC> Dear linux admin, MC> I apolozised in advance if it's the wrong mailing list. MC> I use a periodic shell script to check SUID files MC> on my linux servers using the command:=20 MC> "find / -type f -perm -4000 -print" MC> Does someone know if there is a way=20 MC> to tell find to discard /dev and /proc directories. MC> I am not really a shell guru so if someone could give me a hand to = solve MC> this little problem I would really appreciate. MC> -- MC> Mikael MC> - MC> To unsubscribe from this list: send the line "unsubscribe linux-adm= in" in MC> the body of a message to majordomo@vger.kernel.org MC> More majordomo info at http://vger.kernel.org/majordomo-info.html --=20 Best regards, C=E9sar mailto:csoler@euskalnet.net - To unsubscribe from this list: send the line "unsubscribe linux-admin" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html