[GH-ISSUE #153] Permission denied with sudo -i #64

Closed
opened 2026-03-07 19:14:58 +03:00 by kerem · 6 comments
Owner

Originally created by @19Homer73 on GitHub (Oct 11, 2023).
Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/153

Hello,

I can't run the script via putty.
There ist a permission denied message, when I tried to run the .sh:

grafik

Could someone please give me a hint to resolve this issue?

Thanks!

Originally created by @19Homer73 on GitHub (Oct 11, 2023). Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/153 Hello, I can't run the script via putty. There ist a permission denied message, when I tried to run the .sh: ![grafik](https://github.com/007revad/Synology_HDD_db/assets/24566412/16994b38-b2e5-467d-b803-f8702d71aaa5) Could someone please give me a hint to resolve this issue? Thanks!
kerem closed this issue 2026-03-07 19:14:58 +03:00
Author
Owner

@007revad commented on GitHub (Oct 11, 2023):

What folder did put the syno_hdd_db.sh file in?

<!-- gh-comment-id:1757364896 --> @007revad commented on GitHub (Oct 11, 2023): What folder did put the syno_hdd_db.sh file in?
Author
Owner

@19Homer73 commented on GitHub (Oct 11, 2023):

It's in the screenshot: /volume1/scripts/

<!-- gh-comment-id:1757370107 --> @19Homer73 commented on GitHub (Oct 11, 2023): It's in the screenshot: /volume1/scripts/
Author
Owner

@007revad commented on GitHub (Oct 11, 2023):

But is the script actually in /volume1/scripts ?

What does ls -l /volume1/scripts return?

<!-- gh-comment-id:1757389651 --> @007revad commented on GitHub (Oct 11, 2023): But is the script actually in /volume1/scripts ? What does `ls -l /volume1/scripts` return?
Author
Owner

@19Homer73 commented on GitHub (Oct 11, 2023):

grafik

<!-- gh-comment-id:1757416002 --> @19Homer73 commented on GitHub (Oct 11, 2023): ![grafik](https://github.com/007revad/Synology_HDD_db/assets/24566412/d8009d81-7cd5-4968-a313-cc616d39fb3a)
Author
Owner

@19Homer73 commented on GitHub (Oct 11, 2023):

OK - found the problem...
Changed permission to 777 then it worked!

<!-- gh-comment-id:1757426084 --> @19Homer73 commented on GitHub (Oct 11, 2023): OK - found the problem... Changed permission to 777 then it worked!
Author
Owner

@007revad commented on GitHub (Oct 11, 2023):

You beat me to it :)

Run the following command to make the script executable:
chmod 750 /volume1/scripts/syno_hdd_db.sh

You should then be to run the script with:
sudo -i /volume1/scripts/syno_hdd_db.sh -nr

<!-- gh-comment-id:1757436612 --> @007revad commented on GitHub (Oct 11, 2023): You beat me to it :) Run the following command to make the script executable: `chmod 750 /volume1/scripts/syno_hdd_db.sh` You should then be to run the script with: `sudo -i /volume1/scripts/syno_hdd_db.sh -nr`
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#64
No description provided.