Removing stubborn files using Terminal not permitted

Hi, (I'm running Sequoia 15.2...) I'm having to manually clean up an old Wacom installation. There are a few directories that need to be removed but won't delete, even with Admin rights.

I'm not comfortable in the Terminal really but trying both sudo and su rmdir <directory> gives me "Operation not permitted" even when I log in as an Admin.

What do I do? :-)

Thanks

S

(If it matters, the paths in question are:

/Library/Frameworks/WacomMultiTouch.Framework

/Library/Preferences/Tablet

/Library/PreferencePanes/WacomTablet.prefpane

)

Mac mini, macOS 15.2

Posted on Jan 8, 2025 2:54 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 12, 2025 3:04 AM

Zurarczurx wrote:

I talked to a couple of ex-colleagues about this and they are also stumped. When you fix it please could you come back and tell us how. Good luck.

I found a solution, if not a reason...


The command:

ls -lO@d /Library/Preferences/Tablet


Gives me:

drwxrwxr-x@ 2 root admin restricted 64 7 Jan 20:37 /Library/Preferences/Tablet


The trailing "@" after the permissions indicate "Extended attributes".


This seems to mean that they are particularly protected by the system. I guess this is due to a slightly borked migration from the TimeMachine.


The solution was to: 


Boot into Recovery mode. This seems to give additional rights to the Terminal...

Use the < csrutil disable > command in Terminal

Reboot to a normal account

Remove the directories by conventional means. I just used the Finder…

Reboot to Recovery and use < csrutil enable > in Terminal

Reboot as normal.


I haven't tried reinstalling the Wacom driver as I've decided to replace it with a Huion but at least I managed to delete those stubborn files...


Thanks for your help! :-)

31 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Removing stubborn files using Terminal not permitted

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.