[GH-ISSUE #576] dhm_tool requires basic execute permissions. #215

Closed
opened 2026-03-07 19:17:06 +03:00 by kerem · 2 comments
Owner

Originally created by @PeterSuh-Q3 on GitHub (Mar 7, 2026).
Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/576

Hello.

Similar to RR, I'm using your script in the hdddb addon for TCRP-MSHELL.
Due to the nature of both loaders, the script auto-update loops indefinitely.

The hdddb.sh (from syno_hdd_db.sh), statically stored in initrd-dsm,
remains at the version that created the addon.

Even if I log in to Synology and update, rebooting will cause the statically stored version in initrd-dsm to be installed again.

Therefore, permanent script updates are impossible.
So, I decided to try using the --autoupdate:0 option.

While the version can't be permanently updated, I eliminated the unnecessary 30-second wait twice and made the script use the latest version immediately upon boot.

However, during this process, I received the following error message:
Although hdddb.sh will likely never directly use dhm_tool,
dhm_tool requires basic execution permissions.
Please adjust it.

Thank you.

/usr/sbin/hdddb.sh: line 2582: /usr/syno/sbin/dhm_tool: Permission denied
sudo /usr/sbin/hdddb.sh -nrwpeSI --autoupdate=0

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

Password: 

Synology_HDD_db v3.6.123
SA6400 x86_64 DSM 7.3.2-86009 
- StorageManager 1.0.1-1100
- SynoOnlinePack_v2 version 9999995
- sa6400_host_v7 version 8034

Using options: -nrwpeSI --autoupdate=0
Running from: /usr/sbin/hdddb.sh

There is a newer version of this script available.
Current version: v3.6.123
Latest version:  v3.6.124
Downloading v3.6.124
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  689k    0  689k    0     0  1000k      0 --:--:-- --:--:-- --:--:-- 1000k

v3.6.124 hdddb.sh downloaded to: /usr/sbin

-------------------------------------------------------------------------------

Synology_HDD_db v3.6.124
SA6400 x86_64 DSM 7.3.2-86009 
- StorageManager 1.0.1-1100
- SynoOnlinePack_v2 version 9999995
- sa6400_host_v7 version 8034

Using options: -nrwpeSI --autoupdate=0
Running from: /usr/sbin/hdddb.sh
Running in interactive shell

HDD/SSD models found: 1
Virtual SATA Hard Drive,00000001,34 GB

No M.2 drives found

No M.2 PCIe cards found

No Expansion Units found

Virtual SATA Hard Drive (00000001) already exists in sa6400_host_v7.db

Support disk compatibility already enabled.

Support memory compatibility already disabled.

ERROR Total memory size is not numeric: ''

NVMe support already enabled.

Drive db auto updates already disabled.

Support WDDA already disabled.

Creating pool in UI on drives in M.2 adaptor card already enabled.

Support IronWolf Health Management already enabled.
/usr/sbin/hdddb.sh: line 2582: /usr/syno/sbin/dhm_tool: Permission denied

Downloading dhm_tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1519k  100 1519k    0     0  3531k      0 --:--:-- --:--:-- --:--:-- 3533k
Downloaded md5: cf67c1d5006913297f85ca7f9d1795ba
Updated IronWolf Health Management.

DSM successfully checked disk compatibility.

You may need to reboot the Synology to see the changes.
Originally created by @PeterSuh-Q3 on GitHub (Mar 7, 2026). Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/576 Hello. Similar to RR, I'm using your script in the hdddb addon for TCRP-MSHELL. Due to the nature of both loaders, the script auto-update loops indefinitely. The hdddb.sh (from syno_hdd_db.sh), statically stored in initrd-dsm, remains at the version that created the addon. Even if I log in to Synology and update, rebooting will cause the statically stored version in initrd-dsm to be installed again. Therefore, permanent script updates are impossible. So, I decided to try using the --autoupdate:0 option. While the version can't be permanently updated, I eliminated the unnecessary 30-second wait twice and made the script use the latest version immediately upon boot. However, during this process, I received the following error message: Although hdddb.sh will likely never directly use dhm_tool, dhm_tool requires basic execution permissions. Please adjust it. Thank you. ``` /usr/sbin/hdddb.sh: line 2582: /usr/syno/sbin/dhm_tool: Permission denied ``` ``` sudo /usr/sbin/hdddb.sh -nrwpeSI --autoupdate=0 We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. Password: Synology_HDD_db v3.6.123 SA6400 x86_64 DSM 7.3.2-86009 - StorageManager 1.0.1-1100 - SynoOnlinePack_v2 version 9999995 - sa6400_host_v7 version 8034 Using options: -nrwpeSI --autoupdate=0 Running from: /usr/sbin/hdddb.sh There is a newer version of this script available. Current version: v3.6.123 Latest version: v3.6.124 Downloading v3.6.124 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 689k 0 689k 0 0 1000k 0 --:--:-- --:--:-- --:--:-- 1000k v3.6.124 hdddb.sh downloaded to: /usr/sbin ------------------------------------------------------------------------------- Synology_HDD_db v3.6.124 SA6400 x86_64 DSM 7.3.2-86009 - StorageManager 1.0.1-1100 - SynoOnlinePack_v2 version 9999995 - sa6400_host_v7 version 8034 Using options: -nrwpeSI --autoupdate=0 Running from: /usr/sbin/hdddb.sh Running in interactive shell HDD/SSD models found: 1 Virtual SATA Hard Drive,00000001,34 GB No M.2 drives found No M.2 PCIe cards found No Expansion Units found Virtual SATA Hard Drive (00000001) already exists in sa6400_host_v7.db Support disk compatibility already enabled. Support memory compatibility already disabled. ERROR Total memory size is not numeric: '' NVMe support already enabled. Drive db auto updates already disabled. Support WDDA already disabled. Creating pool in UI on drives in M.2 adaptor card already enabled. Support IronWolf Health Management already enabled. /usr/sbin/hdddb.sh: line 2582: /usr/syno/sbin/dhm_tool: Permission denied Downloading dhm_tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1519k 100 1519k 0 0 3531k 0 --:--:-- --:--:-- --:--:-- 3533k Downloaded md5: cf67c1d5006913297f85ca7f9d1795ba Updated IronWolf Health Management. DSM successfully checked disk compatibility. You may need to reboot the Synology to see the changes. ```
kerem closed this issue 2026-03-07 19:17:06 +03:00
Author
Owner

@PeterSuh-Q3 commented on GitHub (Mar 7, 2026):

I tested it again, and there was no problem when the service was initially run with sudo privileges.

When running it manually, as shown below, the issue seems to have occurred because permissions weren't granted to the downloaded executable.

I don't think you need to worry about it.
I'll close this issue.

sudo /usr/sbin/hdddb.sh -nrwpeSI --autoupdate=0
<!-- gh-comment-id:4015556315 --> @PeterSuh-Q3 commented on GitHub (Mar 7, 2026): I tested it again, and there was no problem when the service was initially run with sudo privileges. When running it manually, as shown below, the issue seems to have occurred because permissions weren't granted to the downloaded executable. I don't think you need to worry about it. I'll close this issue. ``` sudo /usr/sbin/hdddb.sh -nrwpeSI --autoupdate=0 ```
Author
Owner

@PeterSuh-Q3 commented on GitHub (Mar 7, 2026):

This is a normal log of the service running.

Synology_HDD_db v3.6.123
SA6400 x86_64 DSM 7.3.2-86009 
- StorageManager 1.0.1-1100
- SynoOnlinePack_v2 version 995
- sa6400_host_v7 version 8034

Using options: -nrwpeSI --autoupdate=0
Running from: /usr/sbin/hdddb.sh

There is a newer version of this script available.
Current version: v3.6.123
Latest version:  v3.6.124
Downloading v3.6.124
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  689k    0  689k    0     0   938k      0 --:--:-- --:--:-- --:--:-- 3107k

v3.6.124 hdddb.sh downloaded to: /usr/sbin

-------------------------------------------------------------------------------

Synology_HDD_db v3.6.124
SA6400 x86_64 DSM 7.3.2-86009 
- StorageManager 1.0.1-1100
- SynoOnlinePack_v2 version 995
- sa6400_host_v7 version 8034

Using options: -nrwpeSI --autoupdate=0
Running from: /usr/sbin/hdddb.sh
Running via task scheduler

HDD/SSD models found: 1
MAL23000SA-T54H2,JP050U,3000 GB

No M.2 drives found

No M.2 PCIe cards found

No Expansion Units found

Backed up sa6400_host_v7.db
Added MAL23000SA-T54H2 (JP050U) to sa6400_host_v7.db
Edited unverified drives in sa6400_host_v7.db

Backed up synoinfo.conf

Support disk compatibility already enabled.

Disabled support memory compatibility.

Max memory is set to 1024 GB.

NVMe support already enabled.

Disabled drive db auto updates.

Support WDDA already disabled.

Backed up storage_panel.js
Enabled creating pool on drives in M.2 adaptor card.

Enabled support IronWolf Health Management.
Backed up dhm_tool

Downloading dhm_tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1519k  100 1519k    0     0  6147k      0 --:--:-- --:--:-- --:--:-- 6175k
Downloaded md5: cf67c1d5006913297f85ca7f9d1795ba
Updated IronWolf Health Management.

DSM successfully checked disk compatibility.

You may need to reboot the Synology to see the changes.
<!-- gh-comment-id:4015559465 --> @PeterSuh-Q3 commented on GitHub (Mar 7, 2026): This is a normal log of the service running. ``` Synology_HDD_db v3.6.123 SA6400 x86_64 DSM 7.3.2-86009 - StorageManager 1.0.1-1100 - SynoOnlinePack_v2 version 995 - sa6400_host_v7 version 8034 Using options: -nrwpeSI --autoupdate=0 Running from: /usr/sbin/hdddb.sh There is a newer version of this script available. Current version: v3.6.123 Latest version: v3.6.124 Downloading v3.6.124 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 689k 0 689k 0 0 938k 0 --:--:-- --:--:-- --:--:-- 3107k v3.6.124 hdddb.sh downloaded to: /usr/sbin ------------------------------------------------------------------------------- Synology_HDD_db v3.6.124 SA6400 x86_64 DSM 7.3.2-86009 - StorageManager 1.0.1-1100 - SynoOnlinePack_v2 version 995 - sa6400_host_v7 version 8034 Using options: -nrwpeSI --autoupdate=0 Running from: /usr/sbin/hdddb.sh Running via task scheduler HDD/SSD models found: 1 MAL23000SA-T54H2,JP050U,3000 GB No M.2 drives found No M.2 PCIe cards found No Expansion Units found Backed up sa6400_host_v7.db Added MAL23000SA-T54H2 (JP050U) to sa6400_host_v7.db Edited unverified drives in sa6400_host_v7.db Backed up synoinfo.conf Support disk compatibility already enabled. Disabled support memory compatibility. Max memory is set to 1024 GB. NVMe support already enabled. Disabled drive db auto updates. Support WDDA already disabled. Backed up storage_panel.js Enabled creating pool on drives in M.2 adaptor card. Enabled support IronWolf Health Management. Backed up dhm_tool Downloading dhm_tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1519k 100 1519k 0 0 6147k 0 --:--:-- --:--:-- --:--:-- 6175k Downloaded md5: cf67c1d5006913297f85ca7f9d1795ba Updated IronWolf Health Management. DSM successfully checked disk compatibility. You may need to reboot the Synology to see the changes. ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Synology_HDD_db#215
No description provided.