DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-05-16 08:47:12

crayonshin
New member
Registered: 2008-05-16
Posts: 3

can't write to/delete from BT share

Hello all. New here though I've been lurking around since I got my DNS-323 last year. Anyway, I just upgraded to 1.05 and am having major problems with BitTorrent. I'm on a Mac and it took me a good while just to figure out how to install BT (finally did so using VMWare and Vista). Now it's set up, NAS has a static IP and the default BT port of 6881 is being forwarded to that IP in my router (Apple Airport Extreme). Here are the problems I've having:

1) In the config screen, it shows that the BT share it created has read/write permission for ALL. permissions can't be edited for this share but no biggie. However, I can't do ANYTHING with this share. Can't copy a file into it, can't delete files out of it...nothing. Torrents are downloading there just fine and I can access them and copy them elsewhere but when I try to delete them I get "don't have permissions". This is after connecting to the share with the name admin and my config screen password. Also, this is after the torrent has been removed from the queue so it should not be in use anymore. Tried resetting NAS to default, then reinstalling the BT portion but still cannot delete this torrent out of there, nor copy files/create folders in the BT share.

2) I am setting the seeding to stop at 100% ratio (the max allowed). However, the torrent is stopping as soon as it's finished downloading. At this point the ratio is only like .02 or something, nowhere near 100%.

My DNS-323 is stock, no fun plug or any other modifications. Anybody else seeing these issues? Any suggestions to fix or troubleshoot this while still keeping the NAS stock? Any help is appreciated. Thank you.

Offline

 

#2 2008-05-16 17:55:26

deurges
Member
Registered: 2008-05-16
Posts: 16

Re: can't write to/delete from BT share

i have the exact same problem with the BT folder. I cannot delete my downloaded files..

im running windows vista x64, but I think this is a firmware bug.. i am about to install fun plug 0.4 for telnet access, and hopefully by accessing the linux I can set ownership on the BT folder so I can atleast delete the files..

I am regarding the BT function to still be beta..

-deurges-

Offline

 

#3 2008-05-16 19:16:11

deurges
Member
Registered: 2008-05-16
Posts: 16

Re: can't write to/delete from BT share

just installed the funplug 0.4 and telnetted to the box.. changed ownership of the BT folder with all sub folders to my system user, and TADAAA.. i can now delete files from the BT directory directly from vista without going by telnet..

what you need to do before dlink fixes this in an upcoming release, is to install the funplug 0.4
http://www.inreto.de/dns323/fun-plug/0.4/

use putty to telnet to the box..

use the command chown -R(recursive) <user> <path>, and thats it.. done in less than 5 minutes..

-deurges-

Offline

 

#4 2008-05-16 21:22:53

blahsome
Member
Registered: 2008-03-02
Posts: 157

Re: can't write to/delete from BT share

Is there a way to delete the files throught the web interface? I haven't upgraded to 1.05 so I'm just curious.

Offline

 

#5 2008-05-17 04:05:35

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: can't write to/delete from BT share

What login did you use to access the download menu?  If you logged in as Admin, this is your reason.  You need to use your username and login to access the download page.  Each user gets to log into it, and it downloads with the settings of the user who starts the download.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#6 2008-05-17 11:19:27

crayonshin
New member
Registered: 2008-05-16
Posts: 3

Re: can't write to/delete from BT share

Thank you for the suggestion deurges. I figured funplug and telnet would let me fix this but was hoping to avoid that. I guess there is no choice though. I'm with you that the BT implementation definitely seem beta-like and a bit unpolished. Hopefully the next firmware will iron out the bugs.

bq041, yes I logged into "downloads" with admin because I have not setup any users/groups on the NAS so that's all I can use. Still, the BT share has share permissions of read/write for ALL according to the "Network Access" section. This should function just like the Volume_1 and Volume_2 shares in which I can connect to those shares with any username/password (or no username/password) and create or delete files as I wish.

Offline

 

#7 2008-05-18 05:26:54

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: can't write to/delete from BT share

No, it doesn't because the bit-torrent client is logged in as Admin, not 'nobody' like when you go into a share from a PC.  Because of this, all the files that the bit-torrent program writes will have the permissions (user and group) set to those of Admin.  When you log into the share from the PC, you have full access to the BT share to read and write, but the files that were written there by the Bit-torrent will not.  The BT share permissions only are applicable to files written via that share, and the bit-torrent program writes directly to the disk, since it runs native on the DNS-323.  You need to set up a user account.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#8 2008-05-18 10:15:28

crayonshin
New member
Registered: 2008-05-16
Posts: 3

Re: can't write to/delete from BT share

bq041 wrote:

No, it doesn't because the bit-torrent client is logged in as Admin, not 'nobody' like when you go into a share from a PC.  Because of this, all the files that the bit-torrent program writes will have the permissions (user and group) set to those of Admin.  When you log into the share from the PC, you have full access to the BT share to read and write, but the files that were written there by the Bit-torrent will not.  The BT share permissions only are applicable to files written via that share, and the bit-torrent program writes directly to the disk, since it runs native on the DNS-323.  You need to set up a user account.

I'm not doubting what you're saying but here are some new developments. I logged into BT with admin again and downloaded another torrent. When it was done, I removed it. Then, using the Mac finder, I was able to move it out of the BT share and into another folder on Volume_1. After that, for whatever reason, I was able to delete the original torrent that had given me "no permissions" before. All without doing anything other than what I had done originally. I still think BT needs to be worked on a bit more by DLink. I will setup a user though as you suggested to see how that works.

Any idea on the seeding problem. I still have it set to 100% ratio and left a torrent going this morning. Just got back and it was downloaded and stopped with a ratio of like .003. Two hundred'ish MB downloaded and not even 1MB uploaded. This DNS-323 BT client is making a huge leecher out of me! Had to log in and manually start it up again so it will seed some more.

DLink, you still around?

Offline

 

#9 2008-05-18 10:34:24

Euthenics
Member
Registered: 2008-05-17
Posts: 6

Re: can't write to/delete from BT share

Mine is somewhat similar problem. Previously, was not able to delete or create any file in the BT folder but now I can edit, create and delete any files I wish for some strange reason.
Secondly, no seeding also on my part. If this goes on, huge leecher it becomes.
Sometimes, my torrent can start and sometimes, no matter how many times I press start, nothing moving. Adding new torrent, same result.
My custom settings always will reset back to default after restarting the DNS-323.

Offline

 

#10 2008-05-20 00:02:15

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: can't write to/delete from BT share

Did you open the port on your proper router to allow incoming connections?  It will not seed properly if incomming connections are being blocked at your router.  The settings page under bit-torrent has the port selection in it.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#11 2008-05-22 06:38:37

noisuf
Member
Registered: 2008-05-09
Posts: 12

Re: can't write to/delete from BT share

Hi Everyone,

I wanted to give you all a resolution to not being able to delete completed files via BT without having to install telnet/funplug.

It was via the two posts within this thread that discusses the weird experience where one day they couldn't delete the files and the next day they could that allowed me to troubleshoot when I experienced this issue.

I am consciously trying to avoid having to mod the DNS-323 in any way.

I don't believe setting up a new user or using the admin user to access the downloads page makes a difference.

1) Download the file via inbuilt torrent facilty
2) When completed and after copying file to another location, click on the "Remove Completed Torrents" button. I believe this actually changes the permissions for all folder and files under the BT folder to Full Control for Everyone.
3) Delete files (and even files previously not able to be deleted) as required
4) I would suggest that you then delete the BT folder and create another one with the original three folders complete, incomplete, torrents...Therefore setting the owner of the folders to unix user/nobody

Offline

 

#12 2008-05-22 11:30:16

MTW
New member
Registered: 2008-05-22
Posts: 4

Re: can't write to/delete from BT share

noisuf> Doesn't seem to work for me.

Clicking "Remove Completed" just executes a javascript that removes completed torrents in the browser window.

Is there any way to uninstall the BitTorrent client? I would like to remove it and then create the BT folder and share before installing the client again.

/MTW

Offline

 

#13 2008-05-22 15:21:51

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: can't write to/delete from BT share


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#14 2008-05-22 18:51:00

Euthenics
Member
Registered: 2008-05-17
Posts: 6

Re: can't write to/delete from BT share

bq041 wrote:

Did you open the port on your proper router to allow incoming connections?  It will not seed properly if incomming connections are being blocked at your router.  The settings page under bit-torrent has the port selection in it.

Yeap, I thought about that too and open the port. It does not work as far as I remember. But let me try it again one more time.

Another thing, need to ask you is that, why my custom settings, everytime I powered up the DNS-323 after a shutdown or restart, my BT custom setting always got reset to default. It seems like it does not save the settings at all. Everytime, I've to set it again the port settings that I wanted, the seeding function, the BT download and upload speed.

Any idea? Anybody faced this problem?

Thanks.

Offline

 

#15 2008-05-22 22:17:49

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: can't write to/delete from BT share

I don't know, I only had the D-Link BT program for a short while -- too many security issues with it.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#16 2008-05-23 13:11:28

MTW
New member
Registered: 2008-05-22
Posts: 4

Re: can't write to/delete from BT share

Thanks bq041,

That deleted the BitTorrent client and the BT share - but unfortunately the BT directory and subdirs didn't get deleted. And I still haven't got the rights to delete them :-(

/MTW

Offline

 

#17 2008-05-26 10:01:34

MTW
New member
Registered: 2008-05-22
Posts: 4

Re: can't write to/delete from BT share

It works! I can delete files from the BT share.

I formatted my disks after upgrading to firmware 1.05 and created the BT folders manually before installing the BT client.

Unfortunately now I don't know which action did the trick - formatting or creating folders manually. But it works!

/MTW

Offline

 

#18 2008-06-02 00:12:10

MTW
New member
Registered: 2008-05-22
Posts: 4

Re: can't write to/delete from BT share

MTW wrote:

It works!

Well ... it did. Now it doesn't ??? Didn't change anything - but suddenly I can't delete again?

/MTW

Offline

 

#19 2008-07-06 22:26:56

XeNd
New member
Registered: 2008-07-06
Posts: 1

Re: can't write to/delete from BT share

I now this may be an old problem now, but i got the same after some download, i was not able to delete some of the finich download, but then i notise that if i started a new torrent, and then try to delete at the same time i download, it works.

Last edited by XeNd (2008-07-06 22:27:20)

Offline

 

#20 2008-07-22 16:06:12

graphixxx
New member
Registered: 2008-07-22
Posts: 3

Re: can't write to/delete from BT share

XeNd wrote:

I now this may be an old problem now, but i got the same after some download, i was not able to delete some of the finich download, but then i notise that if i started a new torrent, and then try to delete at the same time i download, it works.

Thanks - this definitely works for me and it was quite easy too! man the bittorent for this dns323 sux big time...

Offline

 

#21 2008-08-01 11:18:16

DigitalOxygen.ca
New member
Registered: 2008-08-01
Posts: 2

Re: can't write to/delete from BT share

I have had this problem as well and none of the solutions posted here have worked for me.  I spoke with (the terrible) tech support about this and they said they are ware of the issue and are working to release a fix "soon" but there is not ETA yet... of course.  Who knows, could be a few weeks or maybe a few months tongue

I did however read another solution (which unfortunately involves "hacking" the unit... adding telnet) but it does work.  In addition I have created an shell script / apple script combination for the Mac users out there.  I'm sure the same thing could be created for the Windows world too.

Another note is that you probably want to have ftp enabled if you don't already.  I am new at this but I had my RAID1 array degrade when I was using the path in the /mnt directory to change the permissions.  I was not able to confirm whether or not that was the cause of the degradation (which did rebuild ok) but it happened around the same time I was changing the permissions so it might be "safer" to do it via the ftp path.

Again this requires you to have telnet installed on the DNS-323 which I don't get into here there is lots of info in the Wiki (http://dns323.kood.org/) and in these forms on how to do that.  It also requires that you have not enabled the password for Telnet.  Be default (at least with the method I used to enable Telnet) you are not prompted for a usename or password when you telnet into the box.  If you are prompted this script could be modified accordingly.

NOTE: As with any other DNS-323 hacking I am not responsible if this breaks anything. big_smile

Step 1: Create the following script file somewhere on your Mac your desired location.  I called mine "changeBTPermissions.sh".  Name and location don't really matter though.  (NOTE: Replace <NAS_IP> with the IP of your NAS)

#!/bin/bash
expect << EOF
set timeout 20
spawn telnet <NAS_IP>
expect "*#"
# original path was /mnt/HD_a2/BT\r but may possibly cause problems with RAID so avoid it if you can
send "chmod -R 777 /usr/share/ftp_server/Volume_1/BT\r"
expect "*#"
send "exit"
exit
EOF

Step 2: Run the script for terminal OR create an apple script that calls this one so you can have a click able icon to run this procedure (see below).
do shell script "/path/to/shell/script/changeBTPermissions.sh"

Hopefully D-Link will release a patch "soon" as they said big_smile

Offline

 

#22 2008-08-01 11:21:01

DigitalOxygen.ca
New member
Registered: 2008-08-01
Posts: 2

Re: can't write to/delete from BT share

PS... I have also been working on setting this up as a Folder Action so that it automatically gets called when I open the BT folder via my mapped drive in OS X but I haven't got that working yet.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB