networking - insufficient permissions to change MAC address - Ask Ubuntu


i attempting change mac address of wi-fi hardware of laptop. when attempt change mac address using macchanger, encounter error:

>sudo service network-manager stop >sudo macchanger --mac 28:27:c4:f6:ca:a5 wlp4s0 current mac:   28:27:c4:f6:ca:a5 (unknown) permanent mac: 5a:ef:56:3d:dd:7e (intel corporate) [error] not change mac: interface or insufficient permissions: device or resource busy 

here, default mac address of hardware 5a:ef:56:3d:dd:7e , mac address should changed 28:27:c4:f6:ca:a5. how should approach error?

on kubuntu 14.10 this page has procedure works. root:

service network-manager stop; sleep 5  ifconfig wlan0 down macchanger -b -a wlan0; sleep 5  ifconfig wlan0 up; sleep 5 service network-manager start 

the sleeps may not necessary, that's worked. macchanger in repos. attempts using ifconfig or ip link appeared take did not survive connecting network, because didn't stop network manager. burnt in mac reasserted.

this works:

service network-manager stop; sleep 5 ifconfig wlan0 down; ifconfig wlan0 hw ether f8:27:93:01:02:03 ifconfig wlan0 up; sleep 5;  service network-manager start; sleep 5; 

i have feeling there little gotchas lurking:

  • in network manager gui, clear 'restrict device:' field. clear 'random' field.

  • use mac recognised vendor prefix, found on goog. many routers can tell difference. avoids snafu 'locally administered' bit, wth is.

  • start clean state, regarding ifup & ifdown commands. keep record of changes have made & can inconsistent
    true network state ( , no: have no idea i'm talking regarding these)

easy. once know how.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User