Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7088 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH] Capistrano permissions on shared hosts

Reported by: jaw6 Assigned to: minam
Priority: normal Milestone: 1.x
Component: Capistrano Version:
Severity: normal Keywords:
Cc:

Description

Since Capistrano > 1.3, file permissions have been forced to g+w. I've found that shared hosts don't like this; they often have suexec setup to trap FastCGI/CGIs that are more than 755 (as a security precaution, to prevent users from writing/running scripts in other users' directories in the shared environment.)

The patch moves the permission forcing to a separate task; in this way, this task can be overridden where necessary (without re-writing all of update_code). For example:

desc "Override standard set_permissions for shared hosts"
task :set_permissions do
  donothing = true
end

Attachments

shared_hosts_hate_fcgi.diff (0.8 kB) - added by jaw6 on 01/16/07 14:49:53.
The Patch

Change History

01/16/07 14:49:53 changed by jaw6

  • attachment shared_hosts_hate_fcgi.diff added.

The Patch

01/19/07 02:30:24 changed by minam

  • status changed from new to closed.
  • resolution set to fixed.

(In [5999]) Refactor the permissions tweaking in update_code to a separate task so that people on shared hosts can override it as necessary (closes #7088)