Re: [systemd-devel] systemd-sysusers

2018-07-09 Thread Roman Mingazeev
Of course, we understand, that it must create a system users. But, we hope do it via just systemd.We think use adduser/addgroup and deluser/delgroup is "ugly"09.07.2018, 10:20, "Mantas Mikulėnas" :On Mon, Jul 9, 2018 at 6:33 AM Roman Mingazeev wrote:Hello, can you help? 1) Is

Re: [systemd-devel] systemd-sysusers

2018-07-08 Thread Mantas Mikulėnas
On Mon, Jul 9, 2018 at 6:33 AM Roman Mingazeev wrote: > Hello, can you help? > 1) Is there any possibility to implement to add and remove users/groups > via systemd-sysusers ? > Addition is already implemented (I mean, that's the whole point)... removal *probably* won't be, as it could very

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Lennart Poettering
On Mo, 05.02.18 10:21, Johannes Ernst (johannes.er...@gmail.com) wrote: > >> It appears systemd-sysusers does not create home directories. On > >> the other hand, it picks (largely unpredictable) UIDs from a > >> range. > >> > >> So I have to run systemd-sysusers, and after that, find the UID >

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 05, 2018 at 10:21:17AM -0800, Johannes Ernst wrote: > > > On Feb 4, 2018, at 21:56, Michael Chapman wrote: > > > > On Mon, 5 Feb 2018, Johannes Ernst wrote: > >> It appears systemd-sysusers does not create home directories. On the other > >> hand, it picks

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Reindl Harald
Am 05.02.2018 um 19:35 schrieb Johannes Ernst: On Feb 5, 2018, at 10:31, Zbigniew Jędrzejewski-Szmek wrote: systemd-sysusers [[ -d /var/lib/foo ]] && mkdir -m755 /var/lib/foo chown $(id -u foo):$(id -g foo) /var/lib/foo # /usr/lib/tmpfiles.d/foo.conf d /var/lib/foo

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Johannes Ernst
> On Feb 5, 2018, at 10:31, Zbigniew Jędrzejewski-Szmek > wrote: >> systemd-sysusers >> [[ -d /var/lib/foo ]] && mkdir -m755 /var/lib/foo >> chown $(id -u foo):$(id -g foo) /var/lib/foo > > # /usr/lib/tmpfiles.d/foo.conf > d /var/lib/foo 0755 foo foo - > > (BTW, chown

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Johannes Ernst
> On Feb 4, 2018, at 21:56, Michael Chapman wrote: > > On Mon, 5 Feb 2018, Johannes Ernst wrote: >> It appears systemd-sysusers does not create home directories. On the other >> hand, it picks (largely unpredictable) UIDs from a range. >> >> So I have to run

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Reindl Harald
Am 05.02.2018 um 10:47 schrieb Michael Chapman: On Mon, 5 Feb 2018, Reindl Harald wrote: Am 05.02.2018 um 06:56 schrieb Michael Chapman:  On Mon, 5 Feb 2018, Johannes Ernst wrote:  It appears systemd-sysusers does not create home directories. On the  other hand, it picks (largely

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Michael Chapman
On Mon, 5 Feb 2018, Reindl Harald wrote: Am 05.02.2018 um 06:56 schrieb Michael Chapman: On Mon, 5 Feb 2018, Johannes Ernst wrote: It appears systemd-sysusers does not create home directories. On the other hand, it picks (largely unpredictable) UIDs from a range. So I have to run

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Mantas Mikulėnas
On Mon, Feb 5, 2018 at 11:26 AM, Reindl Harald wrote: > > > Am 05.02.2018 um 06:56 schrieb Michael Chapman: > >> On Mon, 5 Feb 2018, Johannes Ernst wrote: >> >>> It appears systemd-sysusers does not create home directories. On the >>> other hand, it picks (largely

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Reindl Harald
Am 05.02.2018 um 06:56 schrieb Michael Chapman: On Mon, 5 Feb 2018, Johannes Ernst wrote: It appears systemd-sysusers does not create home directories. On the other hand, it picks (largely unpredictable) UIDs from a range. So I have to run systemd-sysusers, and after that, find the UID of

Re: [systemd-devel] systemd-sysusers

2018-02-04 Thread Michael Chapman
On Mon, 5 Feb 2018, Johannes Ernst wrote: It appears systemd-sysusers does not create home directories. On the other hand, it picks (largely unpredictable) UIDs from a range. So I have to run systemd-sysusers, and after that, find the UID of the user and chown the home directory? Or is there

Re: [systemd-devel] systemd-sysusers does not create nobody user

2017-09-12 Thread Sébastien Luttringer
On Tue, 2017-09-12 at 13:26 +0200, Lennart Poettering wrote: > On Mo, 11.09.17 23:33, Sébastien Luttringer (se...@seblu.net) wrote: > > > Hello, > > > > It appears that the nobody user/group are not created by systemd-sysusers, > > despite its definition in sysusers.d/basic.conf. > > I guess

Re: [systemd-devel] systemd-sysusers does not create nobody user

2017-09-12 Thread Lennart Poettering
On Mo, 11.09.17 23:33, Sébastien Luttringer (se...@seblu.net) wrote: > Hello, > > It appears that the nobody user/group are not created by systemd-sysusers, > despite its definition in sysusers.d/basic.conf. > I guess nss_systemd is always providing answers for nobody user/group which > mislead

Re: [systemd-devel] systemd-sysusers and gshadow

2014-07-07 Thread Lennart Poettering
On Sun, 06.07.14 19:17, Leonid Isaev (lis...@umail.iu.edu) wrote: Hi, Shouldn't systemd-sysusers update /etc/gshadow when adding 'basic' groups? From sysusers.c I don't see that gshadow (and shadow) is updated, and this seems to cause problems on package updates. Consider the

Re: [systemd-devel] systemd-sysusers and gshadow

2014-07-07 Thread Leonid Isaev
Hi, Thanks for the explanation... On Mon, Jul 07, 2014 at 12:26:03PM +0200, Lennart Poettering wrote: I wasn#t aware of grpck, and quite frankly don't think it makes much sense, what the tool is doing. Why? Checking syntax can never hurt... Does it mean that on each update, a

Re: [systemd-devel] systemd-sysusers and gshadow

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 11:08, Leonid Isaev (lis...@umail.iu.edu) wrote: Hi, Thanks for the explanation... On Mon, Jul 07, 2014 at 12:26:03PM +0200, Lennart Poettering wrote: I wasn#t aware of grpck, and quite frankly don't think it makes much sense, what the tool is doing. Why?

Re: [systemd-devel] systemd-sysusers and gshadow

2014-07-07 Thread Leonid Isaev
On Mon, Jul 07, 2014 at 05:40:42PM +0200, Lennart Poettering wrote: On Mon, 07.07.14 11:08, Leonid Isaev (lis...@umail.iu.edu) wrote: Hi, Thanks for the explanation... On Mon, Jul 07, 2014 at 12:26:03PM +0200, Lennart Poettering wrote: I wasn#t aware of grpck, and quite

Re: [systemd-devel] systemd-sysusers and gshadow

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 13:16, Leonid Isaev (lis...@umail.iu.edu) wrote: On Mon, Jul 07, 2014 at 05:40:42PM +0200, Lennart Poettering wrote: On Mon, 07.07.14 11:08, Leonid Isaev (lis...@umail.iu.edu) wrote: Hi, Thanks for the explanation... On Mon, Jul 07, 2014 at 12:26:03PM