today | current | recent | random ... categories | search ... who ... syndication

Tuesday, November 06 2001

Movable Thoughts #9

By default, Movable Type creates new files with permissions of 0666. It should be common knowledge what I think about this, by now. So I will just point out that this is the place where a person's belief in the inate goodness of others is put the test. Your sysadmin may also yell at you. I've sent in some bug fixes which I'm told will be included with the next release. For the time being, if you're running MT through a cgiwrapper that sets uid as user "you", you can tweak this by hand without too much trouble. In MT.pm, you'll want to change the following...
  • Add umask(0022) in sub _rebuild_entry_archive_type, at line 126-ish
  • Comment out chmod ... in in sub _rebuild_entry_archive_type, at lines 225-226
  • Add umask(0022) in sub rebuild_indexes, at line 235-ish
  • Comment out chmod ... at sub rebuild_indexes, at lines 267-268
...and in MT::ObjectDriver::DBM.pm...
  • Add umask(0027) in sub _tie_db_file, at line 37-ish note the slightly draconian permissions. this is predicated on the assumption that there is no reason that any one but you should be looking at the MT DBM files
  • Comment out if ($created){ chmod ... } in sub _tie_db_file, at lines 40-42
Note, that these are quick hacks. I'll leave it as an exercise to the reader to decide if they want to store the old umask and then reset after creating files (good practice, probably unnecessary). Following that, you should "rebuild" your files and then chmod your old database files, by hand.

refers to

meta

Some thoughts on the "imagination proposition" :

Now, I think I understand the sentiment in the original and the subsequent commentary but I would just like to point out that this is hardly a new idea. It is a dressing up of several old ones, including : navel-gazing, selfish-ness, short-sightedness and lifestyle porn. How do you think advertising works? Don't beleive the hype.

refers to

meta

 
 
Monday, November 05 2001 ←  → Wednesday, November 07 2001