# Files created by RoR are uneditable

**URL:** <https://www.ruby-forum.com/t/files-created-by-ror-are-uneditable/100539>\
**Category:** Rails\
**Created:** [November 23, 2005, 4:56am UTC](https://www.ruby-forum.com/t/files-created-by-ror-are-uneditable/100539 "2005-11-23T04:56:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpigford](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jpigford](https://www.ruby-forum.com/u/jpigford)\
**Post date:** [November 23, 2005, 4:56am UTC](https://www.ruby-forum.com/t/files-created-by-ror-are-uneditable/100539/1 "2005-11-23T04:56:41Z")

</div>

Files that are created when say I run generate controller \_\_\_\_\_\_  
apparently have some sort of permissions set that won’t let me overwrite  
them. So say I create something\_controller.rb…if I edit it in TextMate  
and then try to re-upload it (I’ve tried both Transmit and Dreamweaver)  
I just get a message saying I don’t have permission to overwrite it. Any  
ideas?

---

<div class="post-metadata">

**Author:** ![jpigford](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jpigford](https://www.ruby-forum.com/u/jpigford)\
**Post date:** [November 23, 2005, 5:31am UTC](https://www.ruby-forum.com/t/files-created-by-ror-are-uneditable/100539/2 "2005-11-23T05:31:15Z")

</div>

Josh P. wrote:

> Files that are created when say I run generate controller \_\_\_\_\_\_  
> apparently have some sort of permissions set that won’t let me overwrite  
> them. So say I create something\_controller.rb…if I edit it in TextMate  
> and then try to re-upload it (I’ve tried both Transmit and Dreamweaver)  
> I just get a message saying I don’t have permission to overwrite it. Any  
> ideas?

sounds like unix-style permissions on the file at the server. I assume  
that you are editing a local copy and uploading (the comment about  
Transmit) and that you are on Mac OS X.

Check the owner of the remote files

1 - log in to the server with a terminal style application (or ssh  
depending on the security)  
2 - ls -l should give you all the file permissions and the current owner

Change owner

1 - chown filename username (I think, man chown for exact syntax)

This should allow you to overwrite

Kev

---

<div class="post-metadata">

**Author:** ![jpigford](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5a626/32.png) [@jpigford](https://www.ruby-forum.com/u/jpigford)\
**Post date:** [November 23, 2005, 2:49pm UTC](https://www.ruby-forum.com/t/files-created-by-ror-are-uneditable/100539/3 "2005-11-23T14:49:20Z")

</div>

On Wednesday 23 Nov 2005 04:30, Kev J. wrote:

> 1 - chown filename username (I think, man chown for exact syntax)

It’s the other way around:

chown username filename

😉

~Dave

–

Dave S.  
Rent-A-Monkey Website Development  
Web: [http://www.rentamonkey.com/](http://www.rentamonkey.com/)
