alobbs / macchanger

GNU MAC Changer
http://www.gnu.org/software/macchanger
GNU General Public License v3.0
586 stars 112 forks source link

/usr/bin/macchanger: unrecognized option '--all' #83

Closed streamdp closed 2 years ago

streamdp commented 2 years ago

I have installed macchanger on Linux mint 19.3 from apt. And I can see this in the log file (/var/log/macchanger):

Report bugs to https://github.com/alobbs/macchanger/issues
IFACE = --all
/usr/bin/macchanger: unrecognized option '--all'

I tried to specify one interface in /etc/default/macchanger but it is not processed at startup, and I see the same output in the log . My /etc/default/macchanger

ENABLE_ON_POST_UP_DOWN=true
ENABLE_INTERFACES="wlp1s0"
streamdp commented 2 years ago

I figured out the problem a bit. If you turn off and turn on the connection after starting the system, you can see that the mac-address changes, but in the end it is restored to the built-in one. This issue is package and settings related, not macchanger related, so you can skip this.

I'm found in the NetworkManager settings a built-in function for generating mac-addresses. Look in the [wifi] section for the cloned-mac-address parameter, you can configure it with a parameter random, if you face the same problem and don't know how to fix it.

$ sudo cat /etc/NetworkManager/system-connections/WiFiHotSpot
...
[wifi]
cloned-mac-address=random
mac-address=your-mac
...

Of course, you can do this in the GUI of your connection settings.