On Tue, Mar 22, 2022 at 09:02:04AM +0100, Marc Haber wrote:
> If adduser --system is called to create a user that already exists as a
> system accout but is locked, adduser should not error out and instead
> silently unlock the account, restore the password to a useable state and
> set the shell to the value asked on the command line.

if 1008082 gets implemented to just usermod --lock, adduser --system
should verify that the requested account has the properites as adduser
--system (we aleady do that) and then silenty unlock the account.

addgroup --system does not need changing as delgroup --system with
DELUSER_SYS_ACTION = lock is a noop, leaving the group intact, and
delgroup --system with DELUSER_SYS_ACTION = delete removes the group as
it is the case today.

Greetings
Marc

Reply via email to