<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Jul 9, 2018 at 6:33 AM Roman Mingazeev <<a href="mailto:direnol@yandex.ru">direnol@yandex.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, can you help?<br>
1) Is there any possibility to implement to add and remove users/groups via systemd-sysusers ?<br></blockquote><div><br></div><div>Addition is already implemented (I mean, that's the whole point)... removal *probably* won't be, as it could very easily lead to UID collisions (e.g. you remove an account which had UID 994, and then a week later you add a different account with UID 994).</div><div><br></div><div>Note that sysusers is meant for *system* accounts (daemons, services, etc.) – not for human accounts.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2) And where is systemd-sysusers.service? (Or why it is in man)<br></blockquote><div><br></div><div>It's in the same place as other default services. Try `systemctl cat` or `systemctl status` and it'll show the path. (Assuming your distro hasn't removed the service entirely, that is...)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
3) Can I sync uid:gid on different machines<br></blockquote><div><br></div><div>For human accounts? In general, the service isn't meant for that. Deploying a sysusers config with static UIDs to all your machines would work, but I'd say it's overkill – after all, you could just use the same configuration deploy mechanism to add accounts directly. Most sites use LDAP or NIS for that purpose.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>