r/linuxadmin • • Jan 15 '26

systemd user-space daemon capabilities problems

Hi! I have encountered an issue while trying to run a user-space daemon using a binary with cap_net_admin capabilities. This binary is intended to bring network interfaces up and down and perform certain modifications.

When I run the binary directly, it works perfectly. However, when I run it as a systemd user service, I receive an 'operation not permitted' error. I would like to avoid using a system-level service for this if possible.

Is there a way to fix this, or are there any other alternatives? Thank you!

5 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/lescuer97 Jan 16 '26

this is very interesting thank you for the knowledge.

Just for some context, this is basically an application that spins a wireguard client that connects to a server. That is why I need those capabilities. it's my first time having to deal with this part of the linux kernel stack an has been a learning experience.