Posted by Loran Hughes (188.8.131.52) on February 02, 2002 at 09:57:15:
In Reply to: chmod - in the hands of an idiot :-( posted by Jim on February 02, 2002 at 03:41:32:
I'm only seeing doom & gloom here. The only thing that might have saved you would need to be created before you did this. There is a reference file option in chmod that will change file permissions according to the values in the reference file. I haven't found anything to say what the contents of the reference file should look like, but I'm assuming something like this:
Of course, this would have to be created before any accidental chmod commands. You could probably create something like this by dumping an ls command to a file and then write a script to format it properly.