Timeline for Created a user service. Returns error "Failed at step GROUP spawning: Operation not permitted"
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 8, 2019 at 9:51 | comment | added | bovender |
See also man systemd.exec, section on "CREDENTIALS" (freedesktop.org/software/systemd/man/…).
|
|
| Apr 8, 2019 at 9:43 | comment | added | bovender |
I guess this is because systemd runs user units as the user, and you can't switch user or group without escalating privileges. That's why the error message says Operation not permitted. (I made the same mistake when turning a system unit into a user unit...)
|
|
| Oct 27, 2018 at 16:42 | comment | added | mrtechmaker | I got it to work by removing this: User = ubuntu | |
| Oct 27, 2018 at 16:32 | comment | added | mrtechmaker | for user service - we should place the service at $HOME/.config/systemd/user right ? where have you placed service file ? how will systemd know which user you want the service file to belong ? | |
| Sep 25, 2018 at 11:03 | vote | accept | Folaht | ||
| Jan 11, 2018 at 7:56 | history | answered | Folaht | CC BY-SA 3.0 |