Errno::EACCES - Permission denied while delete a file

466 views
Skip to first unread message

Vidya Vidya

unread,
Sep 18, 2007, 8:03:41 AM9/18/07
to rubyonra...@googlegroups.com
hi,

i got the error[Errno::EACCES - Permission denied] , while deleting my
file, for that while searching i came to know i have to set chmod, but i
don't know how to set chmod in my file, if any one knows, how to set
this one, please let me know, Thanks in advance.

my Error is:

Errno::EACCES in CasesController#delete_attach
Permission denied -
D:/INSTAN~1/rails_apps/oddworlders/members/OW1/admin/Duplicate Company
Interchange Aliases.PNGRAILS_ROOT:
D:/INSTAN~1/rails_apps/oddworlders/config/..

Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/app/controllers/cases_controller.rb:362:in `delete'
#{RAILS_ROOT}/app/controllers/cases_controller.rb:362:in `delete_attach'
--
Posted via http://www.ruby-forum.com/.

raghukumar

unread,
Sep 20, 2007, 11:41:10 AM9/20/07
to Ruby on Rails: Talk
hi,
you can use man chmod if you are in linux,
example:
file.txt
if you want read write permission on file.txt
chmod u+r+w+x file.txt # this will give permission of read, write,
execute to only the owner of the file
chmod g+r+w+x file.txt # this will give permission of read, write,
execute to only to those users who belong to same group as you
chmod o+r+w+x file.txt # this will give permission of read, write,
execute to everyone who can see that file


On Sep 18, 5:03 pm, Vidya Vidya <rails-mailing-l...@andreas-s.net>
wrote:

Reply all
Reply to author
Forward
0 new messages