Re: [systemd-devel] start user-service only with UID greater than 1000

2017-07-25 Thread Simon McVittie
On Wed, 26 Jul 2017 at 00:02:06 +0200, Jakob Schürz wrote: > I have no idea, why this users get a PAM-Session. > Now i can see there is also a systemd --user process for > debian-security-support: > > Jul 25 23:54:49 aldebaran systemd[1]: Starting User Manager for UID 137... > Jul 25 23:54:49

Re: [systemd-devel] start user-service only with UID greater than 1000

2017-07-25 Thread Jakob Schürz
Am 2017-05-09 um 20:35 schrieb Lennart Poettering: > On Tue, 09.05.17 17:06, Jakob Schürz (wertsto...@nurfuerspam.de) wrote: > >> Hi There! >> >> I have two services running in systemd --user, which should only be >> startet for login-users. >> If i put the service-file by a deb-package in

Re: [systemd-devel] start user-service only with UID greater than 1000

2017-05-11 Thread Lennart Poettering
On Wed, 10.05.17 08:39, Jakob Schürz (wertsto...@nurfuerspam.de) wrote: > Am 2017-05-09 um 18:19 schrieb Mantas Mikulėnas: > > That might be nice... but, how come your services register a logind > > session in the first place? That doesn't happen unless something > > deliberately calls

Re: [systemd-devel] start user-service only with UID greater than 1000

2017-05-10 Thread Colin Guthrie
Michael Biebl wrote on 09/05/17 20:11: > 2017-05-09 20:35 GMT+02:00, Lennart Poettering : >> On Tue, 09.05.17 17:06, Jakob Schürz (wertsto...@nurfuerspam.de) wrote: >> >>> Hi There! >>> >>> I have two services running in systemd --user, which should only be >>> startet for

Re: [systemd-devel] start user-service only with UID greater than 1000

2017-05-10 Thread Jakob Schürz
Am 2017-05-09 um 18:19 schrieb Mantas Mikulėnas: > That might be nice... but, how come your services register a logind > session in the first place? That doesn't happen unless something > deliberately calls pam_systemd – and the service startup process > generally doesn't involve calling PAM in

Re: [systemd-devel] start user-service only with UID greater than 1000

2017-05-09 Thread Michael Biebl
Afaics, the logind/PAM session for gdm/Debian-gdm is deliberate. gdm spawns that via gdm-launch-environment, see /etc/pam.d/gdm-launch-environment, which in turn includes pam_systemd.so 2017-05-09 20:35 GMT+02:00, Lennart Poettering : > On Tue, 09.05.17 17:06, Jakob Schürz

Re: [systemd-devel] start user-service only with UID greater than 1000

2017-05-09 Thread Lennart Poettering
On Tue, 09.05.17 17:06, Jakob Schürz (wertsto...@nurfuerspam.de) wrote: > Hi There! > > I have two services running in systemd --user, which should only be > startet for login-users. > If i put the service-file by a deb-package in /usr/lib/systemd/user, the > service will also be started for

Re: [systemd-devel] start user-service only with UID greater than 1000

2017-05-09 Thread Mantas Mikulėnas
That might be nice... but, how come your services register a logind session in the first place? That doesn't happen unless something deliberately calls pam_systemd – and the service startup process generally doesn't involve calling PAM in the first place. So something doesn't add up. (Are you

[systemd-devel] start user-service only with UID greater than 1000

2017-05-09 Thread Jakob Schürz
Hi There! I have two services running in systemd --user, which should only be startet for login-users. If i put the service-file by a deb-package in /usr/lib/systemd/user, the service will also be started for Debian-exim, Debian-gdm and other users with a UID below 1000. And this is not "good"...