20

I am trying to rename the "codesign" file name for patch problem, but I tired everything and seems like I can only have read access to the filea inside usr/bin

  1. Folder permission "System" is set to Read&Write
  2. I'm on admin account

What I have tried: Going into terminal using sudo -i to get root access to usr/bin for renaming. Typed in renaming command mv codesign codesign_10.11 still get error of Operation can't be performed

What's wrong with my permission access? How can I fix it?

Kara
  • 6,115
  • 16
  • 50
  • 57
Ricek
  • 645
  • 3
  • 12
  • 22

3 Answers3

34

Have you upgraded Mac OS X to the "El Capitan" version?

If so, you can't modify anything in /System, /bin, /sbin, or /usr (except /usr/local) anymore, even using the root user. They are calling this "feature" as "System Integrity Protection".

I had the same problem and found this explanation here.

Community
  • 1
  • 1
Perazzo
  • 1,127
  • 13
  • 24
  • 2
    So how does one create a symbolic link to an application now? – MikeSchem Apr 19 '16 at 02:58
  • 3
    @MikeSchem what exactly you want to do? If you're referring to get a command available on terminal, you can do it by creating a symlink at /usr/local/bin. But if you want to show a .app on Spotlight search, check this question [here](http://apple.stackexchange.com/questions/23653/can-i-make-a-symlink-to-a-app-folder-in-applications-directory-show-up-in-spo). – Perazzo Apr 21 '16 at 20:43
  • yea, I was trying to add a symlink to /usr/local/bin thanks! – MikeSchem Apr 28 '16 at 03:16
3

execute command line as blow:

sudo gem update --system

sudo gem install -n /usr/local/bin cocoapods

Jerrold
  • 47
  • 1
  • 3
-4

Try changing the ownership Code:

chown -R "user_name" folder_name

Eg:

chown -R "John Doe" codesign
Kaushal Niraula
  • 563
  • 3
  • 7
  • Or if your folder is locked see this post [link](http://superuser.com/questions/140769/cant-rename-move-files-from-osx-that-were-copied-from-ntfs) – Kaushal Niraula Oct 02 '15 at 06:34
  • Folder is not locked, command not working, same error. chown: codesign: Operation not permitted – Ricek Oct 02 '15 at 14:17