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 2010-03-03 06:59:10

switch10
Member
Registered: 2010-02-25
Posts: 27

323 bittorrent permissions/moving downloaded files

Every time I want to move files from my /bittorrent/incoming folder, I have to ssh into the 323, and chmod 777 the file, in order to move it.  There has to be a better way...  I used this guide to set up transmission..http://www.questionbin.com/blogcomment/D-Link-DNS-323-Hacking--SSH--Bittorrent--External-USB-Drive.html

any help would be much appreciated.

Offline

 

#2 2010-03-03 07:03:34

switch10
Member
Registered: 2010-02-25
Posts: 27

Re: 323 bittorrent permissions/moving downloaded files

OK, I can move the file to my computer, but I cannot move the file to another directory located on the 323.  What would cause this?

Offline

 

#3 2010-04-11 00:11:31

djtaz
Member
Registered: 2010-04-03
Posts: 33

Re: 323 bittorrent permissions/moving downloaded files

I think , but im not 100% sure , that if you change the owner name on the download directory from 'nobody' to your own samba login name that you should be able to move it to another folder.

I havent tried this myself yet , but i think it should work ok for your problem.

Offline

 

#4 2010-04-11 02:19:38

djtaz
Member
Registered: 2010-04-03
Posts: 33

Re: 323 bittorrent permissions/moving downloaded files

I just did a bit of playing about on my own and ill post the results once i download something new, but for now here is what i did.

1. I made a file /usr/sbin/chmod_downloads with the following command in the file (i used nano, but vi works too)

Code:

  
chmod 777 /mnt/HD_a2/bittorrent/ -R

where /mnt/HD_a2/bittorrent/incoming is my download folder  (the -R is recuressive in chmod permissions)

2. I then set the file to have executable permissions by typing chmod 777 /usr/sbin/chmod_downloads

3. Next i made a crontab to run the permissions script every 20 minutes or so
copy the crontab to a text file :

Code:

CRONTXT=/mnt/HD_a2/crontab.txt
/bin/crontab -l > $CRONTXT

nano /mnt/HD_a2/crontab.txt (or use vi)

and add in the following line to the bottom of the text file

Code:

 
01,21,41 * * * * /usr/sbin/chmod_downloads

then finish it off with

Code:

/bin/crontab $CRONTXT
/bin/rm $CRONTXT

Last edited by djtaz (2010-04-11 02:21:59)

Offline

 

#5 2010-04-11 04:31:27

karlrado
Member
Registered: 2009-12-07
Posts: 229

Re: 323 bittorrent permissions/moving downloaded files

The problem is with the effective umask the transmission process is using to create files.  Usually, it is set to 022, which sets the default permissions at file creation so that only the owner can write it.  You want the effective umask to be 0 so that files are created so that all have write permission.

See this thread for a discussion and possible solution.  I don't know if the solution will work for your particular version.

http://forum.transmissionbt.com/viewtop … amp;t=6536


DNS-323 FW 1.07 : 2 1TB WD Caviar Green SATA : fun_plug: utelnet + optware (no ffp)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB