1

I can't figure out how to fix this, apparently ruby doesn't like anything in my home directory.

/Users/Connor/.rvm/rubies/ree-1.8.7-2010.01/bin/gem:4: warning: Insecure world writable dir /Users/Connor/.rvm/rubies/ree-1.8.7-2010.01/bin in PATH, mode 040766

How can I fix this?

JP Silvashy
  • 1,447
  • 6
  • 24
  • 30

3 Answers3

3

chmod -R o-w ~/.rvm

2

Note that this is just a warning, and Ruby should still run even with this Warning message.

It appears that /Users/Connor/.rvm/rubies/ree-1.8.7-2010.01/bin has permissions 766, which probably looks like this:

drwxrw-rw- 2 connor yourgroup 68 Apr 13 14:03 bin

This is not secure, because it means anyone with access to your system could install files under /Users/Connor/.rvm/rubies/ree-1.8.7-2010.01/bin, and you might execute those unknown files by accident.

Run this command from the commandline:

chmod go-rw /Users/Connor/.rvm/rubies/ree-1.8.7-2010.01/bin

This will disallow anyone but you from writing to and reading from that directory.

Stefan Lasiewski
  • 23,667
  • 41
  • 132
  • 186
0

Your umask settings are likely improperly set, enabling files to be created with less than secure settings.

The other solutions posted were about fixing the permissions issue, but not fixing the umask issue that is likely a part of it.

Brennan
  • 1,398
  • 6
  • 18