As the title says. I want to prevent a certain program from being started during specific times. Are there a good way of accomplishing this at *nix distros?
Note that this will not keep a determined and intelligent user from simply copying over the program and altering it to ignore the test -- but then again, using a
A cron job to chmod the files to add/remove the execute permission could do this (as pbm's comment suggests).
Alternatively you could put all these apps (assuming its a small set of well-defined apps) in one directory, and then rename (or remove permissions on the directory) in a cron job.
Alternatively, you could setup SELinux (or other Linux security solutions?) to whitelist/blacklist applications. I didn't see anything that easily accomplishes from some quick googling, though.