Forum: Ruby on Rails file_column permissions

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Josh K. (Guest)
on 2006-06-05 09:36
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}/app/controllers/admin_controller.rb:12:in `list'
#{RAILS_ROOT}/app/controllers/admin_controller.rb:3:in `index'
Clayton C. (Guest)
on 2006-06-05 09:47
(Received via mailing list)
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
This topic is locked and can not be replied to.