@ChuckPa you should bug someone to enable the EnablePinAuth hidden pref by default on linux; it helps a lot with these situations (it’s already on by default on macOS and Windows iirc). It creates a “Setup Plex.html“ file in the appsupport/appdata directory, and opening that file in a browser will take the user through the claim process pretty painlessly.
Also, there’s always a hidden file called “.LocalAdminToken“ in that directory, which can be used to authenticate to the server in scripts (including logout/reset/claim scripts), so screwing with prefs.xml directly shouldn’t be necessary. You could pretty easily make a script that uses .LocalAdminToken to sign the user out, set EnablePinAuth=1, and then direct the user to the Claim Plex file (or load the claim URL from the “.ClaimURL“ file).
However, I would not call UserCredentialReset a random sh script. It was written by @ChuckPa who works for Plex. One of his many tasks is writing the Plex Media Server installation routines for Linux platforms. Do all the vetting you want, I’ll never argue against that, but if you see something from Chuck you can be sure it has been through several rounds of testing.
not working. I have acces to the server but can´t login because login asks for password now. I use SSO Authentification and have no password! This way login is password only which I don´t have !
For claiming the server afterwards, I had success with this method:
Stop Plex server
make the changes to the registry, either by editing it directly, or use the reg file from the above link
sign in to your plex account by going to plex.tv, “Sign In” (as opposed to “Sign Up”)
start Plex server using the regular Windows Start menu (unless you are running it as a system service, but if you do, you should already know how to start it)
now double click the Setup Plex.html file inside your Plex data folder
the web browser might now show an endless spinner. Let it sit spinning for at least 5 minutes!
Stop Plex server using its task tray icon
reboot Windows
Wait another 5 minutes, then open the plex web app and see if access is restored
Don’t forget that you need to revisit all your client apps and other tools which are accessing your server using an access token.
@Chuckpa That seems to have done the trick. I was not prompted to claim the server, but did so manually and I appear to see all my content as expected.
There are a few anomalies with my network configuration so I will monitor through today’s Windows Update push and through a couple restart cycles to be 100% sure. Everything seems OK, though.
I do still have that “extra” server appearing in my sidebar. I assume I can delete that myself somehow, right ? I think what happened was I was logged on using a different windows user than the one PMS normally runs under. When I started PMS it setup under that user.. I’ d like to delete the registry hive and any other setup that it may have done on that incorrect user account to get back to my nice, clean install.
stop with all that plex.tv external authentication bullsh*t.
I want to deal with a local users database, not some stupid accounts stored on plex.tv.
I don’t want to rely on an internet connection to be able to manage my users.
I don’t wan’t my account to be managed by you, I don’t want my account to be hacked. My infos has NO REASON to be on your plex.tv servers. My server is running local, I don’t want to have to deal with anything on plex.tv.
Your plex.tv philosophy makes no sense in the first place. Let us just manage our internal server fully On Premise. No “claim server” sh*t whatsoever.
Keep going and people will end up switching to Jellyfin.
Sorry to sound angry/offensive but I’m really FED UP.
$ sudo ./UserCredentialReset.sh
Plex Media Server user credential reset and reclaim tool (Ubuntu 24.04.3 LTS)
This utility will reset the server's credentials.
It will next reclaim the server for you using a Plex Claim token you provide from https://plex.tv/claim
Please enter Plex Claim Token copied from http://plex.tv/claim : claim-nottherealtoken
Stopping PMS
Clearing Preferences.xml
Getting new credentials from Plex.tv
Claim completed without errors.
Username: FordGuy61
Email: <redacted>
Starting PMS
Complete.
$
The fix for me with my Ubuntu container was to sign in via an IP address to my local server (It must be by IP!), click a library with exclamation mark, and claim the server. Then the page refreshed and I could see the libraries. I had to go to Settings and reclaim the server in Remote Access.