Jellyfin: Fix any User login, including Admin
Try these in order as they get increasingly technical...
General Users (Non-Admin)
Simple forgotten password
From the login screen you can reset your password.
Note: This requires email to be setup on the server to automate this for the user.
Assisted password reset
- Login as a Jellyfin server admin user.
- Select Menu > Administration > Dashboard.
- On the Admin Dashboard, select Users.
- Select the User to fix.
- At the top, select password.
- Ignoring current password, set a new password for the User.
- Pass it along to the User and inform them it's best practice to update it after they log in.
Locked account
If the user still cant login they are likely locked out from too many failure attempts
- Login as a Jellyfin server admin user.
- Select Menu > Administration > Dashboard.
- On the Admin Dashboard, select Users.
- Select the User to fix.
- Scroll to bottom.
- Increase the User's failure attempts by one.
- Have the User attempt login again.
- Repeat 6 & 7 as necessary.
- (Optional, best practice) Decrease the User's failure attempts to the original amount.
Admin User
Password reset
For this you will need read access to the server.
- Open up your
server
folder where Jellyfin is located. For Windows this is something like%PROGRAMDATA%\Jellyfin\Server
, Linux is probably/opt/jellyfin/
. - Go to the site root and click forgot password, enter your Jellyfin admin name and click Submit.
- Jellyfin will give you a path to a file that has just been created on your server. Open it in a text editor.
- This JSON file has a pin in it at the beginning. should look like
FF-00-99-AA
. Copy it as you will need it a few times. - Go back to your browser and click the "Got It" button and a pin entry section should appear.
- Paste the pin in and submit. You will get a confirmation the password was reset and is now the pin you just entered. The JSON file that contained it will automatically be deleted.
- Go login with the admin account an update the password to something other than the generated pin. If you get a login error, you may have failed login too many times continue with below fix.
Locked account
For this procedure you will need administrative access to update Jellyfin's SQLite database. Try other steps first!
-
Download and install an SQLite editor. It's easy, Google is your friend. I'll wait here...
-
Open up your server's
data
folder where Jellyfin is located. Note: For Windows this is something like%PROGRAMDATA%\Jellyfin\Server\data
Linux is probably/var/lib/jellyfin/data/
. -
As a privileged user (administrator) open jellyfin.db with your SQLite software. Note: make sure you know how to update the DB, this includes executing the statement AND writing out the changes.
-
Execute the following SQL statement while making sure to change
admin
to your admin user on both lines.-- Reset the login attempts & enable the user UPDATE Users SET InvalidLoginAttemptCount = 0 WHERE Username = 'admin'; UPDATE Permissions SET Value = 0 WHERE Kind = 2 AND UserId IN (SELECT Id FROM Users WHERE Username = 'admin');
-
Shutdown Jellyfin
-
Write out the SQL Changes, close the database.
-
Restart Jellyfin and try resetting the admin password again as above with the JSON file.
If all went well, you and your Users should be back to enjoying content on your Jellyfin server now!
Feel free to contact me if there are any update to this procure.
© Matthew Cordaro.RSS