If you lost access after password reset, need to "reclaim" server

@rogc and ALL

Folks.

This should do it for QNAP.

To use this:

  1. MAKE SURE PLEX IS STOPPED
  2. Untar the script someplace (/share/Public is a good spot for it)
  3. Open your SSH session to the QNAP
  4. Start the script as the ADMIN user (you can sudo if you need to)
  5. Open a browser tab to https://plex.tv/claim
  6. COPY the Token it gives you
  7. Start the script
  8. PASTE the token where it prompts
  9. Hit enter.

This isn’t pretty but it works

[/share/Public] # ./BigHammer.sh 
Please enter Plex Claim Token copied from http://plex.tv/claim : claim-n5zEsF9yLKJRpvyfA5Ab
Claim completed without errors.
 Username: ChuckPA
 Email:    ChuckIsCrazy@haha.com
 
[~] # 

EDIT: FInalized utility now located here