Showing posts with label Terminal remove operation failed and error operation not permitted. operation not permitted. Show all posts
Showing posts with label Terminal remove operation failed and error operation not permitted. operation not permitted. Show all posts

Thursday, 4 January 2018

Operation not permitted in MAC OS for delete and move

While trying the delete or move operation in the command prompt, we faced a issue that even root user can't delete or move or rename the folder or file.

was 👀  looking in the found a solution.

May save your time too ...

Steps to resolve:

1) open a Terminal.
2) go to the previous directory in which you face issue. IN my cases ~/Download is the folder in which i can remove any, due to Operation not permitted issue.  So I have moved to /users/xxxx
3)  run the following command in sudo.

     sudo chflags -R nouchg,nouappnd ~/Downloads/ 

replace the folder in which you are facing issue in instead of ~/Downloads/  in above command.

Hope will this helped you 👍