[sss_cache] [confdb_init] (0x0010): Unable to open config database [/var/run/sssd-cache/db/config.ldb] Could not open available domains

I have encountered the following error:

$ sudo useradd -g 3015 -u 3015 -M -s /usr/sbin/nologin subgen
[sss_cache] [confdb_init] (0x0010): Unable to open config database [/var/run/sssd-cache/db/config.ldb]
Could not open available domains
[sss_cache] [confdb_init] (0x0010): Unable to open config database [/var/run/sssd-cache/db/config.ldb]
Could not open available domains
$ sudo useradd -g 3015 -u 3015 -M -s /usr/sbin/nologin subgen
useradd: user 'subgen' already exists
$ id subgen
uid=3015(subgen) gid=3015(subgen) groups=3015(subgen)

But subgen does not show up in the Credentials->Users on the WebUI.

What should I do?

Not try to add users using useradd would be a start.

Is it a new “feature” of ElectricEel-24.10.2.2?

Should I undo it by userdel?

No, it’s never been supported (ever, in at least 15 years) to add users this way. Add them through the GUI, or through the API.

I get it. But I have added user to the TrueNAS SCALE this way since 23.10. I have never encountered an issue until today.

userdel does not work. Same error. Should I edit the /etc/passwd by hand?

No, that will likely only make things worse. Rebooting the system should recreate everything in /etc, removing whatever it is you did.

1 Like

The user subgen was gone when I opened /etc/passwd. Nice. :blush:

I hope there was damage done.