When I run Ruby commands such as gem -v , I get this error:
/Users/kristoffer/.rvm/rubies/ruby-1.9.2-p180/bin/gem:4: warning: unsafe world writable / Users / kristoffer in PATH, mode 040777
1.6.2
First of all, I donβt understand what this means. / Users / kristoffer is not on my way according to echo $PATH . The result of echo $PATH is:
/Users/kristoffer/.rvm/gems/ruby-1.9.2-p180/bin:/Users/kristoffer/.rvm/gems/ruby-1.9.2-p180@global/bin:/Users/kristoffer/.rvm/ rubies / ruby-1.9.2-p180 / Bin: /Users/kristoffer/.rvm/bin: / USR / bin: / bin: / USR / SBIN: / SBIN: / USR / local / bin: / USR / X11 / Ben
As you can see, PATH is pretty clean. Only the default path + add RVM.
I saw other posts similar to this, where the recommended way to solve the problem is to run chmod go-w path/to/folder
However, Iβm sure itβs a bad idea to make my home folder unusable, right? I fixed the permissions using Disk Utility and it did not find anything wrong with the permissions for my home folder.
Any idea what the problem is and how can I fix it?
ruby path permissions macos
kristofferR May 31 '11 at 18:40 2011-05-31 18:40
source share