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? -- Posted via http://www.ruby-forum.com/.
Josh Pigford 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
On Wednesday 23 Nov 2005 04:30, Kev Jackson wrote:> 1 - chown filename username (I think, man chown for exact syntax)It''s the other way around: chown username filename ;-) ~Dave -- Dave Silvester Rent-A-Monkey Website Development Web: http://www.rentamonkey.com/