Peter Hollandare wrote:
> Note! e-smith's daily event removes it, but theres a simple
> workarround for this, rather than copy new templates (which i
> find annoying), just follow these simple steps under.
>
> 1. make a file called fire.rc in /etc/cron.daily (pico
> fire.rc).
> 2. paste sample i gave. (/sbin/ipchains -I input -s
> 64.124.41.0/24 -j DENY -l).
> 3. chmod 777 fire.rc
>
> Done.
>
> Since all files in here only run 1time per day, its simple to
> activate the it right away. Just enter ./fire.rc and
> its activated instantly.
Peter, I really have to take issue with you on this one. As I've already said once this morning, chmod'ing things to 777 is a HUGE SECURITY RISK. I would not advise anyone to do this.
Furthermore, putting things into /etc/e-smith/templates-custom, despite being a little different to some other distros, is a very useful thing to do. It will ensure that your customisations are backed up along with your other configuration and user data, and keep it in one clear place to make it easier for you to figure out what you've changed.
Finally, your recommendation may not even work. What's to say that your script will run straight after the e-smith daily update of /etc ? Perhaps it will run just before, in which case you won't see your modifications at all. Or perhaps there will be a pause of some minutes between them while other tasks run, which would give a brief failure each day.
K.