Jellyfin Forum
Lost access to admin - 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: Lost access to admin (/t-lost-access-to-admin)



Lost access to admin - dwjelly - 2024-04-23

I somehow locked myself out of the admin account. I was creating other accounts and then tried to get into admin, and it failed. I tried the password reset and it did not work. The account is disabled. I have tried to follow along to the reset admin account instructions but seem to be at a standstill. When I access the database with the command sqlite3 /var/lib/jellyfin/data/jellyfin.db and then ...

UPDATE Users SET InvalidLoginAttemptCount = 0 WHERE Username = 'LockedUserName';
UPDATE Permissions SET Value = 0 WHERE Kind = 2 AND UserId IN (SELECT Id FROM Users WHERE Username = 'LockedUserName');
.exit

Nothing seems to happen. It just stays on the database tool. How do I get past this?

Thanks for any input on this.


RE: Lost access to admin - TheDreadPirate - 2024-04-23

Pretty sure that just unlocks the account, doesn't reset the password. What you can do if the password reset function isn't working is to re-enable the start up wizard.

After you've unlocked your account stop Jellyfin.

Code:
sudo systemctl stop jellyfin

Open the system.xml.

Code:
sudo nano /etc/jellyfin/system.xml

Near the top there will be a line named "IsStartupWizardComplete" which is currently true. Set it to false. Save and quit.

Restart Jellyfin

Code:
sudo systemctl start jellyfin

When you access Jellyfin it will go through the admin account setup process, including setting the password. Skip all the other steps.