if im interpreting things correctly
the files are written with the rights of the httpd user
under webrick you wouldn''t notice a problem
so if you make a rails app as ''user'' but then have an httpd
process write to
that directory it must have access to that ''user'' directory
either set up some group perms or make that directory writeable by all
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Josh Kieschnick
Sent: Sunday, June 04, 2006 10:36 PM
To: rails@lists.rubyonrails.org
Subject: [Rails] file_column permissions
this is getting frustrating...
i installed file_column without a hitch for the first time to just play
around with. using the exact same steps as before, i try to use it with
one of my actual applications, and i get "permission denied" errors. i
figure there might be some conflict with my application so just for
kicks i do the exact same thing i did the first time to test file_column
and i still get "permission denied". it''s not creating
directories, and
if i create the directory myself, the app will open without error, but
the image is not uploaded when i test out the form, and null values are
put in the database.
Errno::EACCES in AdminController#index
Permission denied - /home/station/public/entry
/usr/local/lib/ruby/1.8/fileutils.rb:243:in `mkdir''
/usr/local/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir''
/usr/local/lib/ruby/1.8/fileutils.rb:217:in `mkpath''
/usr/local/lib/ruby/1.8/fileutils.rb:215:in `mkpath''
/usr/local/lib/ruby/1.8/fileutils.rb:201:in `mkpath''
#{RAILS_ROOT}/vendor/plugins/file_column/lib/file_column.rb:30:in
`init_options''
#{RAILS_ROOT}/vendor/plugins/file_column/lib/file_column.rb:28:in
`init_options''
#{RAILS_ROOT}/vendor/plugins/file_column/lib/file_column.rb:618:in
`file_column''
#{RAILS_ROOT}/app/models/entry.rb:2
#{RAILS_ROOT}/app/controllers/admin_controller.rb:12:in `list''
#{RAILS_ROOT}/app/controllers/admin_controller.rb:3:in `index''
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Rails mailing list
Rails@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails