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))
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.
Thank you!
Cris
________________________________
From: Guadagnino Cristiano
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))
Am Donnerstag, 2. Dezember 2021, 13:25:15 CET schrieb Guadagnino Cristiano:
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.
On my Tumbleweed box there actually exists no /etc/login.defs, as this had been moved to /usr/etc/login.defs. You could check if /usr/etc contains a valid login.defs and if it does and the version in /etc does not contain any adaptions you need, you could just remove the version from /etc /Andreas -- Time flies like an arrow. Fruit flies like a banana.
Thank you, Andreas, for your reply!!
I was struggling to understand why my other Tumbleweed box did not have an /etc/login.defs file (but it DOES have an /etc/login.defs.d directory, of which I find no mention in the man pages).
Now I see that both my work laptop (the one with the original problem) and my home PC (the other Tumbleweed box) have a /usr/etc/login.defs file.
To reply to Carlos, I do not know how or why I got those values in the /etc/login.defs on the work laptop. It should have been removed like on my home PC, I suppose. I also do NOT have an /etc/login.defs.d directory on the work laptop.
Thank you!
Cris
________________________________
From: Andreas Mahel
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.
On my Tumbleweed box there actually exists no /etc/login.defs, as this had been moved to /usr/etc/login.defs. You could check if /usr/etc contains a valid login.defs and if it does and the version in /etc does not contain any adaptions you need, you could just remove the version from /etc /Andreas -- Time flies like an arrow. Fruit flies like a banana.
On 02/12/2021 13.14, Guadagnino Cristiano wrote:
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.
No, zero is zero. I didn't realize it at first.
Are you on Leap or Tumbleweed? I'm on Tumbleweed.
Leap, as per signature :-)
It worked. The new user has UID 1001, so it means the old config was limiting UID to have values <= 1000.
<= 0, and max also zero, so no available numbers. How did you get those values? :-? -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.2 (Legolas))
participants (3)
-
Andreas Mahel
-
Carlos E. R.
-
Guadagnino Cristiano