0

i've got the Systemd error Message:

Sep 20 15:54:29 test  systemd[9298]: HostnameResponder.socket: Failed to create listening socket (0.0.0.0:101): Permission denied
Sep 20 15:54:29 test  systemd[1]: HostnameResponder.socket: Failed to receive listening socket (0.0.0.0:101): Input/output error
Sep 20 15:54:29 test  systemd[1]: HostnameResponder.socket: Failed to listen on sockets: Input/output error
Sep 20 15:54:29 test  systemd[1]: HostnameResponder.socket: Failed with result 'resources'.

My systemd Files HostnameResponder.socket

[Unit]
Description=HostnameResponder

[Socket]
ListenStream=0.0.0.0:101
Accept=yes
#NoDelay=true
#FreeBind=true

[Install]
WantedBy=sockets.target

[email protected]

[Unit]
Description=HostnameResponder Per-Connection Server

[Service]
ExecStart=-/usr/bin/hostname -A
#User=nobody
#Group=nobody
StandardInput=socket
PrivateUsers=true
ProtectHome=true
DynamicUser=yes
StandardOutput=socket

[Install]
WantedBy=multi-user.target

I don't understand whats going wrong ...

3
  • Well, it's a permission error & it points to an ordinary user trying to open a port < 1024. Only root can do that. Try port 1101. Commented Sep 20, 2024 at 15:27
  • ....and if you are already root, then check that something else isn't already using the address+port Commented Sep 20, 2024 at 15:54
  • If i using "/usr/bin/cat /etc/hostname" .. that works .. it look liks it is a Problem with "/usr/bin/hostname" Commented Sep 23, 2024 at 4:09

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.