Deleting .kext

Joined
Aug 24, 2017
Messages
1
Reaction score
0
Points
1
Hello,

I am trying to remove the IOAudioFamily.kext so that I can remove all sound from my Business Center iMacs as we have people come in all the time and just blast their things as they please AND just leave it there.

However, my issue is when I try to go into sudo su and run the command rm -Rfv /System/Library/Extensions/IOAudioFamily.kext/ I receive "Operation not permitted" What am I doing wrong? I am not very well versed in MAC OS but I am a technician none the less, and have no fear of intermediate or advanced ways to do this.

Below I will post what came out when I ran the command:

Last login: Thu Aug 24 15:34:47 on ttys000
******:~ administrator$ sudo su
Password:
sh-3.2# rm -Rfv /System/Library/Extensions/IOAudioFamily.kext/
rm: /System/Library/Extensions/IOAudioFamily.kext//Contents/_CodeSignature/CodeResources: Operation not permitted
rm: /System/Library/Extensions/IOAudioFamily.kext//Contents/_CodeSignature: Operation not permitted
rm: /System/Library/Extensions/IOAudioFamily.kext//Contents/Info.plist: Operation not permitted
rm: /System/Library/Extensions/IOAudioFamily.kext//Contents/MacOS/IOAudioFamily: Operation not permitted
rm: /System/Library/Extensions/IOAudioFamily.kext//Contents/MacOS: Operation not permitted
rm: /System/Library/Extensions/IOAudioFamily.kext//Contents/Resources/English.lproj/InfoPlist.strings: Operation not permitted
rm: /System/Library/Extensions/IOAudioFamily.kext//Contents/Resources/English.lproj: Operation not permitted
rm: /System/Library/Extensions/IOAudioFamily.kext//Contents/Resources: Operation not permitted
rm: /System/Library/Extensions/IOAudioFamily.kext//Contents/version.plist: Operation not permitted
rm: /System/Library/Extensions/IOAudioFamily.kext//Contents: Operation not permitted
rm: /System/Library/Extensions/IOAudioFamily.kext/: Operation not permitted
sh-3.2#

I wanted to rewrite the permissions to the entire directory or stop the whole audio daemons THEN try and delete? But I figured I'd ask before anything. And manually moving it to the trash can only gives me an error stating that OS needs this to run and rmdir -p doesn't do anything for me either.

Thank you!!!
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
Welcome to our forums.

You can not remove protected kernel extensions (kexts). And if you did remove them by some unauthorized method, it could prevent the Macs from booting up. You may be able to do the same thing using software or by simply using a dummy headphone plug.
 
Joined
May 21, 2012
Messages
10,739
Reaction score
1,189
Points
113
Location
Rhode Island
Your Mac's Specs
M1 Mac Studio, 11" iPad Pro 3rd Gen, iPhone 13 Pro Max, Watch Series 7, AirPods Pro
Maybe diasable keyboard keys and remove sound icon from menu bar?
 

Slydude

Well-known member
Staff member
Moderator
Joined
Nov 15, 2009
Messages
17,612
Reaction score
1,078
Points
113
Location
North Louisiana, USA
Your Mac's Specs
M1 MacMini 16 GB - Ventura, iPhone 14 Pro Max, 2015 iMac 16 GB Monterey
I'm not sure that accomplishes much of anything. Removing the sound icon from the menu bar doesn't stop someone from making changes via the Sound preference pane unless access to System Preferences is also disabled. In fact, even though I have the icon in the menu bar and frequently go the Sound preference pane out of habit.
 
Joined
Oct 16, 2010
Messages
17,540
Reaction score
1,576
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2011 27" iMac, 1TB(partitioned) SSD, 20GB, OS X 10.11.6 El Capitan
If you're wanting to "remove all sound from my Business Center iMacs", I'd agree and do as chscag suggested:
by simply using a dummy headphone plug in the headphone/audio out port.




- Patrick
======
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top