JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 19.02.2018, 16:42
Meister_Knobi
Guest
 
Posts: n/a
Default JD on QNAP - Downloaded and excrated fiels are readonly for normal user

Hello,

since i have installed jd2 on my qnap, i habe this issue. downloaded and extracted files are Read only for my daily use user.

this are the permissions for JD2 created files:
Code:
[/share/CE_CACHEDEV1_DATA/media/Downloads/jd2/download/cpu-z 1 83-en] # ls -l
-rw-r--r--    1 admin    administ       594 Jan 25 21:08 cpuz.ini
-rw-r--r--    1 admin    administ     26513 Jan 25 21:15 cpuz_readme.txt
-rw-r--r--    1 admin    administ   3015424 Jan 25 21:08 cpuz_x32.exe
-rw-r--r--    1 admin    administ   3520760 Jan 25 21:08 cpuz_x64.exe
and this over smb created files:
Code:
[/share/CE_CACHEDEV1_DATA/media/Downloads/jd2/download/cpu-z_1.83-en] # ls -l
-rw-rw-rw-    1 niklas   everyone       594 Jan 25 21:08 cpuz.ini
-rw-rw-rw-    1 niklas   everyone     26513 Jan 25 21:15 cpuz_readme.txt
-rw-rw-rw-    1 niklas   everyone   3015424 Jan 25 21:08 cpuz_x32.exe
-rw-rw-rw-    1 niklas   everyone   3520760 Jan 25 21:08 cpuz_x64.exe
jd2 is installed vie ssh and admin user in the admin home folder (/share/CE_CACHEDEV1_DATA/homes/admin/)

for propper use i want zu fix the issue instead of changing the file permissions evry time i whant zu access those.

Any idea what has gone wrong?
Reply With Quote
  #2  
Old 19.02.2018, 17:04
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,236
Default

You've got to either modify the script that starts JDownloader and add proper umask to it
or grant yourself read/write access to those files in Synology permission center.

In case you've installed JD manually
just modify your script and append
umask 000
before the start of JDownloader.

For example
[CODE]
#!/bin/bash
umask 000
/path/...java -jar /path...JDownloader.jar >/dev/null 2>/dev/null &
[CODE]

or modify to run as your local user
[CODE]
#!/bin/bash
su -c "/path/...java -jar /path...JDownloader.jar >/dev/null 2>/dev/null &" username
[CODE]
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 20.02.2018, 18:39
Meister_Knobi
Guest
 
Posts: n/a
Default

Simple as that...

Dint know umask before.

to fix the rights i have used chmod -R 777 * and in an quick test with an new created folder, from jd, it worked fine.

i dont know the diffrences, but im using a qnap and "#!/bin/bash" causes this error "-sh: ./jd2.sh: /bin/bash^M: bad interpreter: No such file or directory"

atm i start JD manually
Reply With Quote
  #4  
Old 20.02.2018, 18:58
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,236
Default

instead of bash you can also try /bin/sh
the problem with chmod -R 777 is that it will only change all existing files but not new created ones, that's what umask is for.
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 13:04.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.