Im new to Linux!
I want to change my MAC Address automatically every boot up, the issue is I cannot follow the already existing tutorials on this since my system does not work with those.
Online tutorials state use this:
macchanger -r wlp8s0
That does not work for me, this is the procedure that works for me by doing manually:
sudo ifconfig wlp8s0 down
sudo macchanger -p
sudo macchanger -r wlp8s0
The issue is I dont want to do this manually everytime. So please help me automate this. From my research they say I should use sudo crontab -e, this is what I have on the bottom of that file:
sudo ifconfig wlp8s0 down
sudo macchanger -p
sudo macchanger -r wlp8s0
That does not work, I have also tried creating a file in cron.d and putting the following in there :
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
@reboot /sbin/ifconfig wlp8s0 down
@reboot root macchanger -p
@reboot root macchanger "-r wlp8s0"
This does not work either. Please help me!