Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Using Debian testing on XFCE. During the install of the package I approved changing mac address automatically every boot but even with macchanger -r wlp3s0 command it gives me the following error, what can I do to change mac automatically?
[ERROR] Could not change MAC: interface up or insufficient permissions: Operation not permitted
Even if I turn down the network interface with ip command, the problem persists. Maybe I should execute macchanger -r command before network interface is loaded, but do not know how to do it. Can someone help?
However now when I shutdown it gives two errors: "A stop job is running for LSB: macchanger.sh
A start job is running for Network Manager.
What can be the problem?
SCRIPT:
#!/bin/sh
### BEGIN INIT INFO
# Provides: macchanger.sh
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Change MAC on every boot
# Description: macchanger.sh
### END INIT INFO
sudo ip link set wlp3s0 down
sudo service network-manager stop
sudo macchanger -r wlp3s0
sudo ip link set wlp3s0 up
sudo service network-manager start
Are you running an old Ubuntu ? Because since a while, Ubuntu use systemd as init.
No, I am using Debian Testing (XFCE). I am now aware of systemd is being used mostly. Can someone guide me how to remove the commands I have written, and use do the correct script in systemd?
whatever mis-step i might be guilty of (you don't say), i did not resort to childish name calling.
all 3 links i gave are (or at least can be) relevant to solving your problem.
did you read what debiman answered?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.