12.19.07

Merb on Cygwin: Home dir must not be world/group writable

Posted in merb at 7:10 pm by Robert Horvick

When attempting to create a new controller in merb on a cygwin installation I hit the following error:

$ ./script/generate controller post
svn: '.' is not a working copy
/home/Robert is insecure (40777). It may not be group or world writable. Exiting.

Ignore the svn issue for now - I don’t know why script/generate tries to interact with svn but the problem is the home directory permissions.

I believe this is an issue with RubyInline requiring more secure permissions than Ruby itself requires.

To resolve the issue I executed:

$chmod 750 /home/Robert

After that generating the controller worked as expected.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

2 Comments »

  1. Mathieu Martin said,

    March 3, 2008 at 10:54 pm

    I had pretty much the same message on OS X Leopard, when trying to use ‘merb-gen’ (just to get help, fer gossake :-).
    chmodding solved my problem as well. Thanks for pointing this out :-)
    I kinda like the idea of having a script be anal like that and point out a potential security flaw. On the other hand I think it could really be bunched up (with other verifications) in some rake task, out of my way when developing… Or when following tutorials, in fact :-) What do you think?

  2. cygwin home said,

    July 24, 2008 at 8:22 am

    [...] [...]

Leave a Comment