# File Upload directory permissions

**URL:** <https://www.ruby-forum.com/t/file-upload-directory-permissions/150275>\
**Category:** Rails\
**Created:** [October 6, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/file-upload-directory-permissions/150275 "2008-10-06T20:25:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asoto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/58956e/32.png) [@asoto](https://www.ruby-forum.com/u/asoto)\
**Post date:** [October 6, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/file-upload-directory-permissions/150275/1 "2008-10-06T20:25:06Z")

</div>

I am uploading files with the paperclip plugin. I have a /public/photos  
directory which is a symlink to  
/home/username/public\_html/example.com/shared/system/photos. I have  
entered the following command, in an attempt to set the permissions on  
that directory:  
sudo chmod -R 2750  
/home/username/public\_html/example.com/shared/system/photos

However, when I upload a new photo, the permissions on the folder  
holding the files, and the files themselves, are all 777.

Am I doing something wrong with setting the permissions with that  
directory, or is this something with paperclip?
