It worked.
The new user has UID 1001, so it means the old config was limiting UID to have values <= 1000.
I am really perplexed though, as I had never changed login.defs before.
Later I'll see how it is defined in my other Tumbleweed box.
From: Guadagnino Cristiano <guadagnino.cristiano@creval.it>
Sent: Thursday, December 2, 2021 13:14
To: support@lists.opensuse.org <support@lists.opensuse.org>
Subject: Re: No more available UIDs?
Thank you Carlos,
I am going to test your setup ASAP.
I would have expected the "0"s to mean "unlimited" but I find nothing in the man.
Are you on Leap or Tumbleweed? I'm on Tumbleweed.
Cris
From: Carlos E. R.
Sent: Thursday, December 02, 2021 12:38
To: support@lists.opensuse.org
Subject: Re: No more available UIDs?
On 02/12/2021 10.06, Guadagnino Cristiano wrote:
> Hi all,
> today while installing Citrix Workspace, the post-install script gave me
> this error:
>
> useradd: Can't get unique UID (no more available UIDs)
> useradd: can't create user
>
> So I examined the script, and saw that the command producing the error
> is this one:
>
> useradd -d /var/log/citrix citrixlog
>
> Trying to execute it at the cli gives the same error.
>
> This are the contents of /etc/login.defs
>
> FAIL_DELAY "2"
> GID_MAX "0"
I have 60000
> GID_MIN "0"
I have 1000
> PASS_MAX_DAYS "0"
> PASS_MIN_DAYS "0"
> PASS_WARN_AGE "0"
> UID_MAX "0"
60000
> UID_MIN "0"
1000
--
Cheers / Saludos,
Carlos E. R.
(from openSUSE 15.2 (Legolas))