Jellyfin Forum
Create local user from CLI/SSH? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Create local user from CLI/SSH? (/t-create-local-user-from-cli-ssh)



Create local user from CLI/SSH? - surfrock66 - 2024-05-20

I have had an install of Jellyfin that has been working great for several years, and I use LDAP authentication.  My LDAP user's name overlaps with the local user's name I made when setting it up, and I have no other local user.  Following a recent update, i'm getting the following in the logs when trying to log in:

Code:
User "surfrock66" was found with invalid/missing Authentication Provider "Jellyfin.Plugin.LDAP_Auth.LdapAuthenticationProviderPlugin". Assigning user to InvalidAuthProvider until this is corrected

Seems pretty clear cut and well documented; the LDAP plugin needs an update to a compatible version.  In theory that will happen automatically, but at the moment, I'm effectively locked out.  I probably should have left a local user in the system, but I didn't and I can't disable the plugin as I can't get to the web UI.

Am I just locked out until the LDAP plugin updates?  Or is there a way to create a local user from a shell?


RE: Create local user from CLI/SSH? - TheDreadPirate - 2024-05-24

Sorry. I missed this post. You can reenable the setup wizard to create a local user. Though I think the LDAP plugin has been updated for 10.9 by now.

/etc/jellyfin/system.xml

Change "IsStartupWizardComplete" from true to false and restart jellyfin.


RE: Create local user from CLI/SSH? - Nutellaeis - 2024-06-05

I am running into the same problem. Your suggested fix does not seem to work. I can restart the setup wizard but even then I get a

Code:
[WRN] [20] Jellyfin.Server.Implementations.Users.UserManager: User localAdmin was found with invalid/missing Authentication Provider Jellyfin.Plugin.LDAP_Auth.LdapAuthenticationProviderPlugin. Assigning user to InvalidAuthProvider until this is corrected

[13:51:34] [INF] [20] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for localAdmin has been denied (IP: 192.168.178.138).

[13:51:34] [ERR] [20] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: Invalid username or password entered. URL POST /Users/authenticatebyname.

localAdmin being the newly created user (I am sure this one does not exist in LDAP). Password was copied directly from a file several times. I highly doubt I misstyped.
Any Help appreciated.


RE: Create local user from CLI/SSH? - TheDreadPirate - 2024-06-05

I'm not familiar with how the LDAP plugin integrates with Jellyfin. Does it not allow local accounts to be used? You may need to remove the plugin manually and then redo the setup wizard process.


RE: Create local user from CLI/SSH? - Nutellaeis - 2024-06-05

I do not really know how it integrates. Up until now it just worked. Can you tell me how to manually remove a plugin? Otherwise I will just reinstall Jellyfin. It was not that complicated of a setup thankfully.


RE: Create local user from CLI/SSH? - TheDreadPirate - 2024-06-05

https://jellyfin.org/docs/general/server/plugins/#manual

Go to the plugins directory, usually /var/lib/jellyfin/plugins, and delete the folder for the plugin. And then in the configurations directory in that folder, move (don't delete) the XML configuration file.