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

Lennart Poettering lennart at poettering.net
Tue May 9 18:35:38 UTC 2017


On Tue, 09.05.17 17:06, Jakob Schürz (wertstoffe at 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 Debian-exim, Debian-gdm and other users
> with a UID below 1000. And this is not "good"...

These users should not have a PAM session normally, and hence no
logind session either, and hence no systemd --user instance
either. There's something really strange if you actually do get PAM
sessions for these... Any idea why you get them?

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list