Re: [systemd-devel] User service with suid executable

2016-01-12 Thread Lennart Poettering
On Fri, 08.01.16 13:49, Martin Novák ([email protected]) wrote: > On 01/08/2016 11:27 AM, Simon McVittie wrote: > > On 07/01/16 23:14, Martin Novák wrote: > >> I've created this (toy) user service for running desktop of differnt > >> user > > > > I don't think a user service is an appropriate tool f

Re: [systemd-devel] User service with suid executable

2016-01-08 Thread Martin Novák
On 01/08/2016 11:27 AM, Simon McVittie wrote: > On 07/01/16 23:14, Martin Novák wrote: >> I've created this (toy) user service for running desktop of differnt >> user > > I don't think a user service is an appropriate tool for this job. If you > have sudo privileges, you can use a system service, o

Re: [systemd-devel] User service with suid executable

2016-01-08 Thread Simon McVittie
On 07/01/16 23:14, Martin Novák wrote: > I've created this (toy) user service for running desktop of differnt > user I don't think a user service is an appropriate tool for this job. If you have sudo privileges, you can use a system service, or perhaps even a user service that runs as the other us

[systemd-devel] User service with suid executable

2016-01-07 Thread Martin Novák
Hello, I've created this (toy) user service for running desktop of differnt user: [Service] ExecStart=/bin/sudo -u testuser DISPLAY=:7 xfce4-session The problem is that after starting this service, the following does not work: $ systemctl --user stop testuser-desktop because the UID (rea