On Wed, Mar 05, 2025 at 12:04:04PM +0100, Marc Haber wrote:
> (1)
> adduser foo
> adduser --system (must fail, 'already exists as a non-system user')

That is the case, we check that.

> (2)
> adduser --uid 100 foo
> adduser --uid 101 foo (must fail, 'cannot fulfill uid requirement,
>                        already exists with othe uid')

for non-system users, it fails with "user already exists"

for system users, it fails with "already exists with a different uid".

> (we would need to use --disabled-password for all non-system user
> creation since adduser cannot non-interactively create an account with a
> password).

--disabled-password and --comment ""

Greetings
Marc

Reply via email to