Timeline for How can I set capability to systemd user service?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 13, 2024 at 3:02 | comment | added | Simon Richter | User services can be defined by the user, so having a mechanism for adding capabilities the user does not have would be a security violation. The point of the service model is to have system services that can be activated from a user context. | |
| Sep 12, 2024 at 23:29 | comment | added | larsks | Oh, sorry, I missed that the first time around. | |
| Sep 12, 2024 at 22:27 | history | edited | GongT | CC BY-SA 4.0 |
added 40 characters in body
|
| Sep 12, 2024 at 22:26 | comment | added | GongT | @larsks But it only works for a system service, not user service. | |
| Sep 12, 2024 at 21:24 | comment | added | larsks |
I think you may be looking for the AmbientCapabilities option, describes in the Capabilities section of the systemd.exec man page.
|
|
| Sep 12, 2024 at 19:13 | history | asked | GongT | CC BY-SA 4.0 |