this post was submitted on 27 Mar 2024
14 points (93.8% liked)

Linux

48287 readers
590 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

ubuntu xfce 23.10, macchanger and ip (cli applications from the repo)

I usually disregard the gui, because it sometimes shows the mac address as changed, but after testing with the cli, it turns out it hasn't been changed.

2 commands I cannot get to work:

sudo ip link set dev network down

does nothing, I'm not even asked to write my password.

Baffled, because on an older ubuntu, this same command works.

sudo macchanger -r network

returns: [ERROR]: Could not change MAC!: interface up or insufficient permissions: Operation not supported

I, however, turned the network down with the gui

what am I doing wrong?

top 1 comments
sorted by: hot top controversial new old
[–] BestBouclettes@jlai.lu 4 points 7 months ago* (last edited 7 months ago)

Do you happen to have NetworkManager ? I think it's default on Ubuntu and that might be your problem. If you have it, nmcli connection set <device> down would turn off your device. I believe you can also change your mac address with it, but I don't have the manual with me right now.

Edit: NetworkManager can do randomised mac address Arch wiki link