One NAS say"claim" other "Not authorized" after password reset- "PlexData" path in docs seems wrong

Server Version#:Version 4.147.1

How do I reclaim my NAS? Plex on my older Qnap server says “claim it now” but the new one does not. I used Putty to SSH into the NAS, but the instructions do not work. Where did Plex install the PlexData path and the files needed to reclaim?

Claiming a PMS server via a browser- can’t work because not on the same IP range due to high speed NIC.

I used Putty to SSH into my NAS as per the instructions “cd /share/PlexData"do not work as there is no such path.
Using PlexMediaServer, but “chmod +x claimpms.sh" does not work in that directory. Putty returns this:
chmod: claimpms.sh: No such file or directory

The PlexMediaServer directory has this:
CrashUploader* Plex Media Fingerprinter* Plex SQLite*
etc/ Plex Media Scanner* Plex Transcoder*
lib/ Plex Media Server* Plex Tuner Service*
Library/ Plex Relay* Resources/
Plex Commercial Skipper* Plex Script Host*
Plex DLNA Server* plex.sh*

The Plex instructions seem wholly inadequate to define the path that Plex uses on Qnap:

I note that other servers like Audiobookshelf do not have this issue with a logout and password change. Why does Plex have this problem?

Why is the reclaim not part of the Plex GUI?

QNAP is a vendor where app installation is completely hidden.

The work I’ve done is to make it as reliably visible to you as can be.

The easiest way to deal with the QNAP

  1. Go to my Github and download the claiming script.
    – Specifically, Download the tar.gz
  1. Without opening, upload to the “Public” shared folder on the QNAP

  2. SSH (or putty) into the QNAP

  3. Once on the command line, use tar to extract the tar file.

look at the README.md for example of what to do and what you’ll see / expect

From there, the script will prompt you.

Thanks. Are you a Plex employee and is this the official Plex solution?

I asked if you are a Plex Employee. Are you?

If your code is safe, why is it not hosted on Plex’s site?

Does Plex guarantee the safety of your code?

I would like a Plex Employee to answer my question, please.

@ChuckPa is not a Plex Employee, but a trusted contractor we use

The code he wrote is as such considered 3rd. party, and as such unofficial

When said, the code is safe, and I personally use it

Like so many Plex users, I am locked out after changing my password at their request. I’ve tried to follow @ChuckPa ‘s advice. I have downloaded the tar.gz file. I have copied it into the Public folder on my QNAP. I have installed Putty and connected to the command line on my QNAP. Then I am stuck. What do I type in on the command line? I’m sorry to be so thick - I’ve never done any of this before. Thanks in advance for your help

I have no “Public” folder on my Qnap NAS to put it in. The “Public” folder is DANGEROUS and a vector for attack and infection. No one should have one, and on the advice of Qnap, I do not have it.

So where is this file supposed to go on a Qnap that does not have the inherently insecure “Public” folder?

Thanks. I will trust this third party software on your guarantee.

However, I have no “Public” folder on my Qnap NAS to put this software in. The “Public” folder is DANGEROUS and a vector for attack and infection. No one should have one on a Qnap NAS, and on the advice of Qnap support, I do not have it.

So where is this file supposed to go on a Qnap that does not have the inherently insecure “Public” folder?

Sorry for the delay.

I’ve been a cat in a room of rocking chairs today LOL

In the README.md are the instructions

There are minor changes due to different versions but general is the same.

Here’s current version.

  1. Download the tar.gz from the “Releases” link (right side)
  2. Place the tar.gz in the Public shared folder on the QNAP
  3. SSH into the QNAP (Putty or SSH)
  4. Now it looks like this
[~] # cd /share/Public
[/share/Public] # ls -la
total 99788
drwxrwxrwx  8 admin administrators     4096 2025-09-11 17:30 ./
drwxrwxrwx 42 admin administrators     4096 2025-09-11 17:30 ../
-rwxr-xr-x  1 admin administrators    70026 2025-01-03 17:53 db2.sh*
drwxr-xr-x  3 admin administrators     4096 2025-05-23 21:17 DBRepair-1.11.00/
-rwxr-xr-x  1 admin administrators    73989 2025-07-06 19:19 DBRepair.sh*
-rwxr-xr-x  1 admin administrators    74024 2025-07-06 19:19 DBRepair.sh.bak*
drwxrwxrwx  2 admin administrators     4096 2023-10-11 17:07 hybrid/
drwxr-xr-x  3 admin administrators     4096 2023-12-27 11:45 PlexData/
-rw-r--r--  1 admin administrators  4103076 2024-06-13 18:49 PlexLogs.tar.gz
-rwxr-xr-x  1 chuck everyone       97807657 2024-07-24 00:28 PlexMediaServer-1.40.5.8761-c64418528-aarch64.qpkg*
drwxrwxrwx  2 admin administrators     4096 2025-06-14 15:10 @Recycle/
drwxrwxrwx  2 admin administrators     4096 2025-09-11 17:30 .@upload_cache/
-rw-rw-rw-  1 admin administrators     7401 2025-09-11 17:29 UserCredentialReset-1.0.9.tar.gz
drwxr-xr-x  2 admin administrators     4096 2024-07-13 00:45 web/
[/share/Public] # tar xf UserCredentialReset-1.0.9.tar.gz 
[/share/Public] # ll
total 98M
drwxrwxrwx  9 admin administrators 4.0K 2025-09-11 17:31 ./
drwxrwxrwx 42 admin administrators 4.0K 2025-09-11 17:30 ../
-rwxr-xr-x  1 admin administrators  69K 2025-01-03 17:53 db2.sh*
drwxr-xr-x  3 admin administrators 4.0K 2025-05-23 21:17 DBRepair-1.11.00/
-rwxr-xr-x  1 admin administrators  73K 2025-07-06 19:19 DBRepair.sh*
-rwxr-xr-x  1 admin administrators  73K 2025-07-06 19:19 DBRepair.sh.bak*
drwxrwxrwx  2 admin administrators 4.0K 2023-10-11 17:07 hybrid/
drwxr-xr-x  3 admin administrators 4.0K 2023-12-27 11:45 PlexData/
-rw-r--r--  1 admin administrators 4.0M 2024-06-13 18:49 PlexLogs.tar.gz
-rwxr-xr-x  1 chuck everyone        94M 2024-07-24 00:28 PlexMediaServer-1.40.5.8761-c64418528-aarch64.qpkg*
drwxrwxrwx  2 admin administrators 4.0K 2025-06-14 15:10 @Recycle/
drwxrwxrwx  2 admin administrators 4.0K 2025-09-11 17:30 .@upload_cache/
drwxrwxr-x  2 admin administrators 4.0K 2024-01-02 13:42 UserCredentialReset-1.0.9/
-rw-rw-rw-  1 admin administrators 7.3K 2025-09-11 17:29 UserCredentialReset-1.0.9.tar.gz
drwxr-xr-x  2 admin administrators 4.0K 2024-07-13 00:45 web/
[/share/Public] # cd UserCredentialReset-1.0.9
[/share/Public/UserCredentialReset-1.0.9] # ls -la
total 36
drwxrwxr-x 2 admin administrators  4096 2024-01-02 13:42 ./
drwxrwxrwx 9 admin administrators  4096 2025-09-11 17:31 ../
-rw-rw-r-- 1 admin administrators   974 2024-01-02 13:42 LICENSE.md
-rw-rw-r-- 1 admin administrators  6977 2024-01-02 13:42 README.md
-rwxrwxr-x 1 admin administrators 13283 2024-01-02 13:42 UserCredentialReset.sh*
[/share/Public/UserCredentialReset-1.0.9] # ./UserCredentialReset.sh 
 
          Plex Media Server user credential reset and reclaim tool (QNAP)
 
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--D7y6kWsTg5wr6yvfhgZ
Stopping PMS
Clearing Preferences.xml
Getting new credentials from Plex.tv
Claim completed without errors.
 Username: ChuckPA
 Email:    ChuckPa@loonies.com
 
Starting PMS
PlexMediaServer is disabled.
Complete.
[/share/Public/UserCredentialReset-1.0.9] # 

“Plex is disabled.” is because I have it disabled in App Center.
When I start it in App Center, it will become enabled and start.

Hello, I am having exact same issue but mine is running in docker.

@MoscowShock

Stop the container.

Get the claim token

Quickly paste into the container spec where you normally specify the PLEX_CLAIM_TOKEN

SAVE

Start the container

You can put it anywhere you can access from from SSH

IMHO, but largely biased because I’m on Linux and the Firewall I use, I have Public. A Public shared folder is subjective based on local environment.

I think the attack vector is actually the computer which is network mounting the QNAP, true?

Perfect thank you, I juts got it back.

1 Like

I am sorry I missed this post until now. (Dane22 pointed it out to me)

No, I am not a full time employee.
I am a part time contractor due to pension limitations but have been asked.

1 Like

Hi @ChuckPa . Thanks so much for your detailed reply but I’ve wrongly let you think I understand SSH and all this stuff. So far,

  1. I have downloaded the tar.gz from your link.
  2. On my QNAP, I have 3 directories visible at the top level: Multimedia, Public and Recordings.
  3. So I put the tar.cz into Public
  4. I’ve installed PuTTY and successfully connected to my QNAP.
  5. I don’t understand the commands, but have tried to follows yours above.
  6. Once logged in, I get a Console Management menu plus a final option “Q” to exit the menu
    Console Management - Main menu |
    | |
    | 1: Show network settings |
    | 2: System event logs |
    | 3: Reset to factory default (password required) |
    | 4: Activate/ deactivate a license |
    | 5: App management |
    | 6: Reboot in Rescue mode (w/o configured disk) |
    | 7: Reboot in Maintenance Mode |
    | Q: Quit (return to normal shell environment)
  7. I’ve chosen Q and seem to be at the top level of the QNAP. Am I?
  8. I tried to access the Public directory using cd /Public but get message “there is no such file or directory”
  9. I did access a “Share” directory using cd /Share and wondered if that was the same directory as Public
  10. I ran the “ls -la” command and got this:

drwxrwxrwt 30 admin administrators 660 2025-09-11 16:12 ./
drwxr-xr-x 23 admin administrators 580 2025-09-11 16:16 ../
drwxrwxrwx 35 admin administrators 4096 2025-09-12 10:54 CACHEDEV1_DATA/
drwxrwxr-x 28 admin administrators 560 2006-02-28 06:57 external/
drwxrwxrwx 2 admin administrators 40 2005-09-19 04:32 HDA_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDB_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDC_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDD_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDE_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDF_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDG_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDH_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDI_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDJ_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDK_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDL_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDM_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDN_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDO_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDP_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:41 HDQ_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:42 HDR_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:42 HDS_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:42 HDT_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:42 HDU_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:42 HDV_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:42 HDW_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:42 HDX_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:42 HDY_DATA/
drwxrwxrwx 2 admin administrators 40 2005-12-07 11:42 HDZ_DATA/
lrwxrwxrwx 1 admin administrators 25 2025-09-11 16:12 Multimedia → CACHEDEV1 _DATA/Multimedia/
lrwxrwxrwx 1 admin administrators 21 2025-09-11 16:12 Public → CACHEDEV1_DAT A/Public/
lrwxrwxrwx 1 admin administrators 25 2025-09-11 16:12 Recordings → CACHEDEV1 _DATA/Recordings/

11. I tried to run “tar xf UserCredentialReset-1.0.9.tar.gz” but it failed, presumably as I’m in wrong directory
12. I tried to find a “Public” subdirectory of “Share” but there is none - I get the same error message

What should I do next? Please give me simple step-by-step instructions :grimacing: Many thanks

@DavidCosham

That’s an easy misunderstanding on QNAP.
You were really close.

You want /share/Public (shortcut link to where all shared folders go)

cd /share/Public
tar xf UserCredentialReset-1.0.9.tar.gz

and you can go from there

1 Like

Hi Chuck - that worked, and I am now in the share/Public directory and have executed the UserCredentialReset-1.0.9 file.

I’m sorry but waht do i do next?

Thanks for your patience.
David

@DavidCosham

What was the output? Did it say “Claim completed without errors”?

If so, you’re good to go. Start Plex Media Server if it is not already running and see if you can access your server.


Example: Running on Ubuntu. Output on QNAP will be similar.
$ sudo ./UserCredentialReset.sh claim-Wm47xV4QEZsTDvb9zy3s

          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

Using given claim token:  'claim-Wm47xV4QEZsTDvb9zy3s'

Stopping PMS
Clearing Preferences.xml
Getting new credentials from Plex.tv
Claim completed without errors.
 Username: FordGuy61
 Email:    <redacted>

Starting PMS
Complete.
$

Why do you not provide the command we use to “extract the tar file”? Do you seriously think we are experts with whatever tar is?

After reading the tar instructions, i tried “tar -x UserCredentialReset-1.11.0.tar.gz”

It did nothing. Putty is just sitting there and no script is prompting me.

Can you please provide the actual instructions to use your code?

The tar.gz file is not working. The instructions do not list the commands to extract and run it.

I can get to the Plex directory on the NAS and I would like to use the far simpler “chmod +x claimpms.sh" command, but once again, Plex’s directions are all wrong.

I want to know what Plex directory to run that command in. Can you please provide accurate instructions to reclaim my own server using your software that I paid for?