You are not logged in.

#1 2024-08-12 05:14:27

zayne
Member
Registered: 2024-08-12
Posts: 1

Failed to enable unit: Invalid unit name multi-user

So, I was trying to create a MAC Spoffing service using mcchanger, as the Wiki suggest i created this service:
https://wiki.archlinux.org/title/MAC_ad … cchanger_2

And added this code:

[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 -r %I
Type=oneshot

[Install]
WantedBy=multi-user.target



But when executing the

sudo systemctl enable macspoof@wlan0.service



This is the output

Failed to enable unit: Invalid unit name multi-user


I just came from debian, This is my second day on arch pls dont roast me guys

Offline

#2 2024-08-12 05:58:04

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Failed to enable unit: Invalid unit name multi-user

What is the name and full path of the unit file?

EDIT: welcome to the forums. Arch is way easier than Debian so you should be fine here :-)

Last edited by Head_on_a_Stick (2024-08-12 05:58:49)


Jin, Jîyan, Azadî

Offline

#3 2024-08-12 08:10:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,828

Re: Failed to enable unit: Invalid unit name multi-user

You got 3 days of Welpenschutz¹, so tomorrow the gloves come off tongue

systemctl status multi-user.target

Also please fix the link and use [code][/code] tags.
And upload the actual file

cat /etc/systemd/system/macspoof@.service | curl -F 'file=@-' 0x0.st

as this smells like some stray blank.

¹ The English language does not seem to have, but then certainly needs that word. Every language needs that word.

Offline

Board footer

Powered by FluxBB