Fix a problem with Mac OS X 11 not being able to copy files

Source: Internet
Author: User



1. After upgrading Mac OS X 11, you want to copy files to the system directory.


sudo cp-f test.txt/usr/bin/


2、I found that even with permission sudo, there are also permission problems.


CP:/usr/bin/test:operation not permitted

3. The reason is that after upgrading Mac OS X 11, El Capitan has added the Rootless mechanism. It is no longer possible to edit any path at will, even if root permissions are set.

ps: Rootless mechanism is used to resist malicious programs.

4. Rootless mechanism needs to be disabled for the copy under bin directory.

5. Restart Press and hold Command + R to enter recovery mode.

6. Then open Terminal and enter: csrutil disable.

ps: When not needed, you can turn on csrutil enable again, after all, it is a protection mechanism.

This article comes from the "Going Upward Dream" blog, please keep this source http://mandyc.blog.51cto.com/1230448/1980146

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.