r/linuxadmin • u/lescuer97 • 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
View all comments
Show parent comment
1
u/lescuer97 Jan 15 '26
This actually command actually worked:
systemd-run --user --pty <command>:2026/01/15 14:58:13 goose: no migrations to run. current version: 1
2026/01/15 14:58:13 after setting the link
2026/01/15 14:58:13 after removing the link
The last two logs would have shown a fail.
I think I found the issue, I have this security options in the service daemon:
I removed all 3 options and it suddenly worked. I cannot explain why it's all 3 that I need to remove.