You are not logged in.
For a while now I have had macchanger run on boot, as per the wiki instructions.
This is my /etc/systemd/system/macspoof@.service:
[Unit]
Description=macchanger on %I
Wants=network-pre.target
Before=network-pre.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
ExecStart=/usr/bin/macchanger -e %I
Type=oneshot
[Install]
WantedBy=multi-user.target
This is the error being reported:
systemctl status macspoof@wlp1s0
● macspoof@wlp1s0.service - macchanger on wlp1s0
Loaded: loaded (/etc/systemd/system/macspoof@.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2016-10-25 06:04:09 UCT; 50min ago
Process: 288 ExecStart=/usr/bin/macchanger -e %I (code=exited, status=1/FAILURE)
Main PID: 288 (code=exited, status=1/FAILURE)
Oct 25 06:04:08 george systemd[1]: Starting macchanger on wlp1s0...
Oct 25 06:04:09 george macchanger[288]: [ERROR] Could not change MAC: interface up or insufficient permissions: Device or resource busy
Oct 25 06:04:09 george macchanger[288]: Current MAC: xxxxxx (unknown)
Oct 25 06:04:09 george macchanger[288]: Permanent MAC: xxxxxx (unknown)
Oct 25 06:04:09 george systemd[1]: macspoof@wlp1s0.service: Main process exited, code=exited, status=1/FAILURE
Oct 25 06:04:09 george systemd[1]: Failed to start macchanger on wlp1s0.
Oct 25 06:04:09 george systemd[1]: macspoof@wlp1s0.service: Unit entered failed state.
Oct 25 06:04:09 george systemd[1]: macspoof@wlp1s0.service: Failed with result 'exit-code'.
The "interface up or insufficient permissions: Device or resource busy" makes me think this is being run after the wireless has already started up, but from the wiki the line Before=network-pre.target line should prevent that.
It worked well in the past and it also works just fine if I run it manually. It just doesn't run on boot anymore. Any ideas?
Thanks
Offline
If you use NetworkManager you need to read: https://blogs.gnome.org/thaller/2016/08 … ger-1-4-0/
According to that I suppose you shouldn't need macchanger anymore. I was thinking it may somehow be related to your problem even if you don't use NetworkManager.
Hope it helps.
Offline
Thanks but I do not use NetworkManager - I use Wicd instead.
Offline