Search code examples
ruby-on-railschmoderrno

Rails new command chmod fail


Chmod seems to be causing a rails new error, here's the specific problem:

/home/gossfunkel/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/fileutils.rb:1231:in `chmod': Operation not permitted - /media/windows/Users/gossfunkel/code/rails/blog/script (Errno::EPERM)

and here's a pastebin of the full output: http://pastebin.com/SwqxA8bR


Solution

  • You're running this in /media/windows which is presumably an NTFS partition mount. chmod is not allowed on NTFS partitions, as NTFS doesn't recognize unix permissions. Run this in your home directory or somewhere that's on a linux partition.