Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have copied a file from a windows system to my mac system. I want to rename this file but it is probably read only. How can I rename the file?

I tried it through terminal also but got the error

mv: rename education.jpg to logo.jpg: Operation not permitted

share|improve this question

migrated from Sep 26 '11 at 8:15

This question came from our site for professional and enthusiast programmers.

could you do ls -dla . and ls -dla education.jpg. looking at the permissions and ownership of the files and directories involved would make this simple to solve. – Dan D. Sep 26 '11 at 8:22
hi dan I found following on ls -dla education.jpg -rwx------ 1 – pankaj Sep 26 '11 at 8:33
good but when renaming files it's the perissions on the containing directory that matter which is why i stated ls -dla . and the ownership of the files is important as mode -rwx------ says that the owner of this file has read write and execute permission but the group or world has none but it doesn't say who the owner is and without that it's not possible to answer that. – Dan D. Sep 26 '11 at 8:50
ok i did that too drwx------+ 12 espireinfolabs staff 408 Sep 26 13:34 . – pankaj Sep 26 '11 at 8:57
is espireinfolabs the same as your current user as stated by whoami? otherwise you should take ownership of the files and directories by doing sudo chown $(whoami) <copied_files_and_directories>. – Dan D. Sep 26 '11 at 9:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.