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-07-27 09:52:33

jollywombat
New member
Registered: 2008-07-27
Posts: 1

How to set user access to allow deleting bittorrent files

Hello,

I know I have seen lots of random scraps of info regarding this, but nothing that actually worked from what I have seen unless I am missing something.

The issue is the normal not being able to delete the bittorrent files after they have downloaded.

I have installed busybox on it and can telnet and delete the files manually, however this is a pain and there has to be a way to allow it though windows with the permissions.
I tried the chown -R <windowsuser> /mnt/HD_a2/BT/ to try and take ownership of the folders (yes, setup user account as system and same password as windows vista) but that didnt fix anything.

I also tried blowing away the folders and then manually creating them though file manager in vista so as to have the inherent permissions through that, but once a file downloads, it still uses the old permissions and cant delete it again.

Suggestions on this?  Rather frustrating.

Offline

 

#2 2008-07-27 16:09:56

flashman1207
Member
Registered: 2008-05-27
Posts: 92

Re: How to set user access to allow deleting bittorrent files

jollywombat wrote:

Hello,

I know I have seen lots of random scraps of info regarding this, but nothing that actually worked from what I have seen unless I am missing something.

The issue is the normal not being able to delete the bittorrent files after they have downloaded.

I have installed busybox on it and can telnet and delete the files manually, however this is a pain and there has to be a way to allow it though windows with the permissions.
I tried the chown -R <windowsuser> /mnt/HD_a2/BT/ to try and take ownership of the folders (yes, setup user account as system and same password as windows vista) but that didnt fix anything.

I also tried blowing away the folders and then manually creating them though file manager in vista so as to have the inherent permissions through that, but once a file downloads, it still uses the old permissions and cant delete it again.

Suggestions on this?  Rather frustrating.

Have same problem, raised this issue before but didn't get a resolution (unusual for this forum). See http://dns323.kood.org/forum/t2585-dele … es%3F.html

D-Link really should have an option to delete the torrent from the same panel you can remove the download from...

Tony

Offline

 

#3 2008-07-27 22:43:28

Lewism
New member
Registered: 2008-03-30
Posts: 3

Re: How to set user access to allow deleting bittorrent files

I managed to do it with telnet
Use this command:
chmod -R 777 /mnt/HD_a2/BT/complete/

It will give you all the rights on the files and you can delete them afterward

I guess you do chmod via FTP also. But you can't delete it directly from Windows.

Last edited by Lewism (2008-07-27 22:44:37)

Offline

 

#4 2008-07-28 16:02:57

flashman1207
Member
Registered: 2008-05-27
Posts: 92

Re: How to set user access to allow deleting bittorrent files

Lewism wrote:

I managed to do it with telnet
Use this command:
chmod -R 777 /mnt/HD_a2/BT/complete/

It will give you all the rights on the files and you can delete them afterward

I guess you do chmod via FTP also. But you can't delete it directly from Windows.

That fixed it, can't believe how easy it was. Still yet to see if the rights will get changed back after my next download but at least I can issue that command once and then delete them all in one go from Windows....

Thanks v. much
Tony

Offline

 

#5 2008-08-20 11:51:02

Bieffe
Member
Registered: 2008-08-20
Posts: 8

Re: How to set user access to allow deleting bittorrent files

Lewism wrote:

I managed to do it with telnet
Use this command:
chmod -R 777 /mnt/HD_a2/BT/complete/

It will give you all the rights on the files and you can delete them afterward

I guess you do chmod via FTP also. But you can't delete it directly from Windows.

Sorry to dig but what does the -R 777 mean? or do?

Offline

 

#6 2008-08-20 11:53:29

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: How to set user access to allow deleting bittorrent files

Look at http://polishlinux.org/console/file-per … -in-linux/

Last edited by mig (2008-08-20 11:53:53)


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#7 2008-08-20 12:00:36

Bieffe
Member
Registered: 2008-08-20
Posts: 8

Re: How to set user access to allow deleting bittorrent files

But why 777?

Offline

 

#8 2008-08-20 17:03:10

hell0
Member
From: .de
Registered: 2008-05-13
Posts: 81

Re: How to set user access to allow deleting bittorrent files

Bieffe wrote:

But why 777?

3.2?


CH3SNAS firmware 1.05 with WD1000FYPS and ffp 0.5 on USB Stick

Offline

 

#9 2008-08-25 01:38:13

holodeck
New member
Registered: 2008-08-25
Posts: 1

Re: How to set user access to allow deleting bittorrent files

Got info from another forum. Thanks to psychdev for his concise explanation.

Im a linux junky, so I'll try to explain it...I'm sure the sites above give a good explaining.. but who wants to visit another site?

chmod stands for "Change Mode".

The numbers part is a little more complicated.... "777" is three numbers..to be nerdy and specific.. it is three 3 digit binary (base 2) numbers converted into three 1 digit octal (base 8) numbers.

The first number stands for "user", the second group stands for "group" and the final number stands for "other". There are three possible things that can be done with a file: read, write, and execute.. Here is a little reference:

execute = 001 in binary = 1 in octal
write = 010 in binary = 2 in octal
read = 100 in binary = 4 in octal

So where does the 7 come from?

7 in binary = 111 in decimal = read, write, execute

So you get:

read write execute = 111 = 1 + 2 + 4 = 7
read write no execute = 110 = 4 + 2 = 6
read no write execute = 101 = 4 + 1 = 5
read no write no execute = 100 = 4
no read write execute = 011 = 2 + 1 = 3
no read write no execute = 010 = 2
no read no write execute = 001 = 1
no read no write no execute = 000 = 0

Make sense?

To make a file "chmod 777" you would simply type:

chmod 777 filename.ext




My 2 cents now

The -R is for recursive permissions ie set permissions on the subfolders as well.


For me personally I found the best permissions is the following


chmod -R 777 /mnt/HD_a2/BT/           to reset all permissions to give everyone access for read/write/execute
chmod 771 /mnt/HD_a2/BT/               to set only execute permissions to everyone which allows you to access subfolders but not root BT folder

what this does is blocks everyone from being able to read the BT folder and hence not pursue any further but if you connect to BT/*sub-folder* (because you know what the name of the folders are) you get access. Good for hiding what u are currently downloading.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB