From: utzoo!decvax!decwrl!sun!megatest!fortune!hpda!hplabs!sri-unix!chris.umcp-cs@UDel-Relay Newsgroups: net.unix-wizards Title: Re: More on SUID and exec Article-I.D.: sri-arpa.827 Posted: Tue Mar 22 05:03:25 1983 Received: Thu Apr 7 04:07:53 1983 From: Chris Torek What we do is not entirely satisfactory, but we haven't had any trouble. We have cron automatically take away execute permission for the appropriate games in the morning, and add it back in the afternoon. The only problem occurs when the Vax is down at the changeover time. That could be fixed by adding some more stuff into /etc/rc. It'd be something like: : en/dis able games if it is/isnt working hours if [ /usr/local/ifdate -s Wk1000-1630 ] ; then chmod a-x /usr/games/foo else chmod a+x /usr/games/foo fi The program is -rwx--x--x 1 daemon /usr/games/foo, so no one can copy it; if they link to it we don't care, since their link is only executable when the original is. ('ifdate' was yanked out of UUCP's date check routines.)