Re: [systemd-devel] [PATCH] Create a new logind session from a systemd --user unit

2013-07-29 Thread Abdó Roig-Maranges
Hi, Then, I want to manually launch my window manager, in a new logind session for my user, on a different tty. I tried adding User and PAMName to my window manager unit awesome.service ... The unit fails with message systemd[21209]: Failed at step GROUP spawning

Re: [systemd-devel] [PATCH] Create a new logind session from a systemd --user unit

2013-07-29 Thread Lennart Poettering
On Mon, 29.07.13 18:19, Abdó Roig-Maranges (abdo.r...@gmail.com) wrote: Also, there is dbus policy preventing from accessing the CreateSession method in logind1.Manager from unprivileged users. Is this intentional? Yes it is. CreateSession()/ReleaseSession() are only used by pam_systemd, by

Re: [systemd-devel] [PATCH] Create a new logind session from a systemd --user unit

2013-07-29 Thread Lennart Poettering
On Mon, 29.07.13 18:19, Abdó Roig-Maranges (abdo.r...@gmail.com) wrote: I think initgroups in core/execute.c always needs privileges. It is always called when User=blah is set on a service file and always fails on systemd user instances for unprivileged users. This prevents from using PAM