changing lock mechanism

Systems can suffer power interruptions whilst .lock files are in /etc,
preventing scripts and other automation tools from updating shadow's
files which persist across boots.

This commit replaces that mechanism with file locking to avoid problems
of power interruption/crashing.

Minor tweak to groupmems man page, requested by 'xx' on IRC.

Signed-off-by: ed neville <ed@s5h.net>
This commit is contained in:
ed neville
2022-12-06 19:21:55 +00:00
committed by Serge Hallyn
parent bc18c184e5
commit 65470e5c7d
3 changed files with 30 additions and 157 deletions

View File

@@ -167,7 +167,7 @@
<programlisting>
$ groupadd -r groups
$ chmod 2710 groupmems
$ chown root.groups groupmems
$ chown root:groups groupmems
$ groupmems -g groups -a gk4
</programlisting>
</refsect1>