in reply to DB can't open

The permissions will only be set if the file doesn't exist yet (and hence gets created). But then you still need write permission in the directory, or else you get a permission denied error. Furthermore, if the file already exists, and you don't have the appropriate permissions, you get a permission denied error as well.

Abigail