It's fine for a dedicated production environment (like a VPS or dedicated server), but it's probably too permissive if you're on shared hosting - the defaults are world-writeable for the cache and upload folders, and you really only need to give access to the web server account (and possibly the user who can upload updates to the code).
You can make your own task that does the same thing but with tighter permissions:
- copy the project:permissions task (lib/vendor/symfony/lib/task/project/sfProjectPermissionsTask.class.php) to your lib/task folder
- rename the file and the class
- change the declarations on lines 30 and 31 (e.g., 'project' and 'permissions-strict')
- alter the permissions in the
$this->chmod()
method calls on lines 46-68. You may have to create a $this->chown()
method too if you really want to lock things down.
(You could also extend the sfProjectPermissionsTask
class, but since you'd be overriding just about everything, it doesn't really seem worthwhile)