# Permissions problem on upload

**URL:** <https://www.ruby-forum.com/t/permissions-problem-on-upload/116526>\
**Category:** Deployment\
**Created:** [October 6, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/permissions-problem-on-upload/116526 "2007-10-06T20:57:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Ballantyne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58956e/32.png) [@Scott\_Ballantyne](https://www.ruby-forum.com/u/Scott_Ballantyne)\
**Post date:** [October 6, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/permissions-problem-on-upload/116526/1 "2007-10-06T20:57:11Z")

</div>

I’ve got a permissions problem that is only happening on my production  
server. It coincides with making an upload with attachment\_fu. It  
looks  
like it is preventing attachment\_fu from making a tmp folder which  
attachment\_fu wants to send the file to. Anyone ever run into something  
like this. I’m running this app on an Ubuntu server with Apache in  
front of  
Mongrels

Here is part of the exception notification:

A Errno::EACCES occurred in prints#create:

Permission denied - /var/www/apps/ballantynearts  
/current/config/…/public/prints/52  
/usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir’

* * *

## Request:

- URL: [http://127.0.0.1:8051/prints](http://127.0.0.1:8051/prints)
- Parameters: {“commit”=\>“Create”, “action”=\>“create”,  
“print”=\>{“uploaded\_data”=\>#\<File:/tmp/CGI26751.7\>, “title”=\>“Mea  
Culpa”,  
“technique”=\>“”, “description”=\>“”}, “controller”=\>“prints”}
- Rails root: /var/www/apps/ballantynearts/current

---

<div class="post-metadata">

**Author:** ![Scott\_Ballantyne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58956e/32.png) [@Scott\_Ballantyne](https://www.ruby-forum.com/u/Scott_Ballantyne)\
**Post date:** [October 6, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/permissions-problem-on-upload/116526/2 "2007-10-06T23:14:07Z")

</div>

I’d venture to say that the user that mongrel is running as doesn’t  
have the necessary permissions to run this command.

-Robby

Sent from my iPhone

On Oct 6, 2007, at 11:56 AM, “Scott Ballantyne”
