removing a file with hyphens

Simon Burr simes at bpfh.net
Thu Jun 7 17:29:49 BST 2007


On Thu, Jun 07, 2007 at 04:04:24PM +0100, Stig Brautaset wrote:
>Putting an empty file called '-i' in directories you care about might  
>not be a bad idea.

That could potentially some interesting side effects for any other commands
which you use * on whilst in that directory!

It also doesn't protect against people doing an rm -rf in the parent of the
directory you're trying to protect.

It could also be flagged by braindead audit software as a break-in attempt
thanks to ancient shell hacks involving such files.

-- 
   Simon the stressed        http://www.bpfh.net/           simes at bpfh.net
                 Chocolate is *not* a substitute for sleep


More information about the london.pm mailing list