Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

AppleScript/Disable Ethernet Mac OS X 10.5

I have tried to accomplish this by using ifconfig and /usr/sbin/networksetup and their respective commands, but neither works. I get an error message that "a privilege violation occurred."


These are the statements I've tried (separately):

do shell script"ifconfig en0 down" with administrator privileges


do shell script "/usr/sbin/networksetup -setnetworkserviceenabled Ethernet off" with administrator privileges


FWIW, this works post-Leopard without error.

 eMac (2005)-OTHER, Mac OS X (10.5.8), PowerPC G4 1.42GHz, 150GB, 512MB RM

Posted on May 15, 2015 4:05 PM

Reply
15 replies

May 30, 2015 10:22 PM in response to stevejobsfan0123

In case anyone else has this issue, note that "do shell script "sudo networksetup -setnetworkserviceenabled Ethernet off" with administrator privileges" worked for me, but on some Macs, you may need to say "Built-in\\ Ethernet" in place of "Ethernet." For example, my PowerBook G4 on 10.5.8 says Ethernet, but my eMac, also 10.5.8, uses "Built-in Ethernet."

AppleScript/Disable Ethernet Mac OS X 10.5

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