[prev in list] [next in list] [prev in thread] [next in thread]
List: systemd-devel
Subject: Re: [systemd-devel] DynamicUser in instantiated (and socket-activated) units
From: Leonid Isaev <leonid.isaev () ifax ! com>
Date: 2020-01-21 16:20:43
Message-ID: 20200121162043.GC115847 () orca
[Download RAW message or body]
On Tue, Jan 21, 2020 at 05:08:14PM +0100, Lennart Poettering wrote:
> if you speciy the same user name its going to have the same uid.
>
> use something like this:
>
> ...
> [Service]
> ...
> User=foo-%i
> DynamicUser=1
> ...
>
> That way you have a separate user for each instance, and the user is
> called "foo-" suffixed with the instance ID. And each UID is
> dynamically assigned.
Great, it works, thanks!
I see, so without a User= line, username is the same as the unit name (before
@)... apparently I didn't read systemd.exec manpage carefully enough.
Sincerely,
L.
--
Leonid Isaev
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic