Date: Wed, 15 May 96 08:23:33 -0400 From: Yves Lepage <yves@CC.McGill.CA> To: freebsd-questions@freebsd.org Subject: auo-changing permissions?? Message-ID: <199605151223.IAA08995@maelstrom.CC.McGill.CA>
next in thread | raw e-mail | index | archive | help
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: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=root> X-Cron-Env: <USER=root> /usr/bin/wc: Permission denied. What could make it so wc becomes non-executable for root?? TIA, Yves Lepage
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605151223.IAA08995>