Rails - capistrano and chmod
I want to use chmod via capistrano to add permission for folder. For example, i want to do that: chmod 777 -R /vol/www/apps/ror_tutorial/current/log/ So, i want to do that via capistrano's task. I tried that: desc "Fix permission" task :fix_permissions, :roles => [ :app, :db, :web ] do run "#{try_sudo} chmod 777 -R #{current_path}/log" end after "deploy:update_code", :fix_permissions But it doesn't work. Permissions of the folder are same: $ ls -alh /vol/www/apps/ror_tutorial/current/log/ total 1008K drwxrwxrwx 2 root root 4.0K 2012-02-03 20:22 . drwxrwxr-x 7 root root 4.0K 2012-01-25 20:50 ..