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

Jan 8, 2025 7:18 AM in response to Zurarczurx

Zurarczurx wrote:

Disc doctor - repair disc. I know that Safe Mode should have done this, but the fact that Finder isn't responding correctly (passwords, drag and drop, etc.) points to something else and it's way above my pay grade now. Have you got good backups of everything?

Disk Doctor...? Is that still a thing? I've tried the Drive Utility and even Onyx...

I do have backups but it's more of an issue of getting rid of files :-)

Jan 8, 2025 4:20 AM in response to smartin2021

It's empty - the . and .. are normal - they are sort of references to the current and next level up folder - If you do cd . it will stay in the same directory. cd .. will take you up one level.


I'm stuck. They're not taking any space so you could just leave them - although it would annoy my OCD if it were on my Mac. It might be related to the permissions of the folders above. If you're really keen on getting rid of them then you could investigate enabling the root user and try logging in as root to delete them, but in theory sudo should do the same thing and I wouldn't bother if I were you - you can cause all sorts of problems if you mes up when logged in as root.

Someone more knowledgable might be along soon to help. If not give this thread a boot later when the US wakes up or this evening when more people might be on.

Jan 8, 2025 6:36 AM in response to smartin2021

smartin2021 wrote:

Barney,
There's no sound and it doesn't really move at all when I drag it to the trash, not as you'd expect it to move. Same if I do Command+Backspace. No sound, nothing.
It's as if it never gets to the Trash.

That doesn’t indicate a permission problem. There is something else going on. My thoughts are you have wasted more time than it is worth. They will have no effect on your Mac unless you need to reinstall the tablet software.

Jan 8, 2025 6:42 AM in response to Barney-15E

Barney-15E wrote:


smartin2021 wrote:

Barney,
There's no sound and it doesn't really move at all when I drag it to the trash, not as you'd expect it to move. Same if I do Command+Backspace. No sound, nothing.
It's as if it never gets to the Trash.
That doesn’t indicate a permission problem. There is something else going on. My thoughts are you have wasted more time than it is worth. They will have no effect on your Mac unless you need to reinstall the tablet software.

I *do* need to reinstall the software :-) At the moment the new installation fails with no useful error message. The only thing we can think of is to completely clean up the old files...

Jan 8, 2025 8:40 AM in response to smartin2021

I discovered that there's such a thing as "Directory Utility" How to enable the root user or change the root password on Mac – Apple Support (UK)
*Still* doesn't do the trick...

I told you it wasn’t a permission issue. There is never any reason to enable the root user. Admin-capable users can temporarily elevate their privileges to that of root. root is also not particularly special on macOS.

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.