From owner-freebsd-questions Wed May 15 05:24:10 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA09150 for questions-outgoing; Wed, 15 May 1996 05:24:10 -0700 (PDT) Received: from maelstrom.CC.McGill.CA (maelstrom.CC.McGill.CA [132.206.35.2]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id FAA09135 for ; Wed, 15 May 1996 05:24:08 -0700 (PDT) Received: (from yves@localhost) by maelstrom.CC.McGill.CA (8.7.1/8.6.10) id IAA08995 for freebsd-questions@freebsd.org; Wed, 15 May 1996 08:23:36 -0400 (EDT) Message-Id: <199605151223.IAA08995@maelstrom.CC.McGill.CA> Content-Type: text/plain MIME-Version: 1.0 (NeXT Mail 3.3 v118.2) Received: by NeXT.Mailer (1.118.2) From: Yves Lepage Date: Wed, 15 May 96 08:23:33 -0400 To: freebsd-questions@freebsd.org Subject: auo-changing permissions?? Reply-To: yves@CC.McGill.CA Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi all, Here's an unusual problem. I run my MBone router off a FreeBSD machine. Like on any machine I take care of, I have this little script that runs from cron every minute that checks if the service I want to keep running still runs. Here it is: #!/bin/csh if (`/bin/ps -ax | grep mrouted | /usr/bin/grep -v grep | /usr/bin/wc -l` < 1) then echo "Mrouted Died, Restarting" >/dev/console sleep 30 /usr/sbin/mrouted else echo -n "." >/dev/console endif Sometimes (very occasionally, like once every 2-3 months), I get this piece of mail: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: /usr/bin/wc: Permission denied. What could make it so wc becomes non-executable for root?? TIA, Yves Lepage