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-04-19 10:23:26

hastings69
Member
Registered: 2008-01-04
Posts: 56

Changing settings via Telnet and Putty

Hey all,
Any advice much appreciated, I am a newb, but trying hard to learn and tweak.
I have installed the fun_plug and telnetted into my DNS as instructed through this forum. (or at least I think it is set up right).
Firmware 1.04.
Twonky is also setup streaming to my PS3 fine.

My DNS is available through ftp://192.168.X.X/volume_1 from any of my networked computers via explorer and firefox. And also available as a persistent mapped drive in windows vista and XP.

Through putty I get the busybox 1.5.0 message at the command box but am unable to get to the files already transferred onto the DNS.
I can list files with root I assume such as home, bin etc, but can not find any files otherwise.

It just keeps teling me I can't cd to anything that I know exists on the drive.
I have a great deal of music transferred via a windows computer and unless the DNS share (via DNS GUI) is set to "everyone can anything" it just stops users getting within certain folders. I can't even add a user with no rights without it becoming jealous and denying access....

Putty hasn't asked me for any password or username.?

I have tried understanding some of the forum posts regarding permissions and I am implementing what I can understand.

If it helps with what I need to do, I have one computer that I have just installed ubuntu 7.10 on to experiment with.

If you can point me in the right direction that would be great.

Offline

 

#2 2008-04-19 11:12:57

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: Changing settings via Telnet and Putty

The hard disks that you put in to the DNS323 don't appear at the root of the file system, they are available in the /mnt folder, so do

Code:

cd /mnt/HD_a2

then do

Code:

ls

are those your files? If not, try to cd to /mnt/HD_b2

Offline

 

#3 2008-04-19 11:25:35

hastings69
Member
Registered: 2008-01-04
Posts: 56

Re: Changing settings via Telnet and Putty

Great, finally I am seeing some light, yes these are my files, thankyou. If you don't mind furthering this question.....
I have a folder in this and when I    cd /videos

/mnt/HD_a2/fun_plug.d/bin/sh: cd: can't cd to /videos

Is this a permission issue? Hopefully this is also "painfully obvious" to you! smile

Offline

 

#4 2008-04-19 12:57:59

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: Changing settings via Telnet and Putty

It's because you started with a /

The / means "from the start" or "from the root".

The directory called / is often called "the root"

so, if you've already done
cd /mnt/HD_a2
you just need to do
cd videos

Or you can do
cd /mnt/HD_a2/videos
which will take you to videos from wherever you started from.

See if you can find an on-line reference to "unix shell" if you want to get really fancy.

Edit:

An essential tip:
Say you are in /mnt/HD_a2, and you want to change directory to videos, type
cd v[TAB]

That is, press the tab key after you type v, and the shell will complete as much of the name as it can for you, so if you only have one file or folder that starts with v it will fill in the whole name.

If there is more than one option, press tab twice, and it will show you them all. Try it, it makes the typing a lot less tedious!

Last edited by sjmac (2008-04-19 13:04:41)

Offline

 

#5 2008-04-20 07:40:14

hastings69
Member
Registered: 2008-01-04
Posts: 56

Re: Changing settings via Telnet and Putty

Cheers sjmac
This is great, thanks for you info and patience and even going into further details.

Unfortunately even though this does make sense it won't let me cd to videos  with cd videos

~/HD_a2 # cd videos
/mnt/HD_a2/fun_plug.d/bin/sh: cd: can't cd to videos
~/HD_a2 # /mnt/HD_a2/fun_plug.d/bin/sh: cd: can't cd to videos

videos is definately there, it is in a blue font and other files in green

I am trying to chmod 777 videos and some music files that when I have some users added via the 323 GUI it won't let me access. they were transferred via windows onto the mounter drive. I have tried editing the permission via windows with no luck, and also via ubuntu (through the network) with no luck.

So my intention was just to chmod videos and music folder and hope it would just apply to the 1000's of files within, ? I note on the forum there are lots of permission issues but I don't see if it applies t my situation or not, and people just recommending to chmod 777 them, am I try to do it the right way? or si there a bigger picture?

As I said, appreciate you advice.

Offline

 

#6 2008-04-20 09:09:27

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

Re: Changing settings via Telnet and Putty

hastings69,

telnet to the DNS-323 and post the output of these commands:

first: this will list the directory and display user and groups and permissions on all files -

/ # ls -la /mnt/HD_a2/

second: this will show what users you are logged in as -

/ # id

third: this will show the type of file

/ # file /mnt/HD_a2/videos

with this output your permission problem should be revealed.

Last edited by mig (2008-04-20 09:10:34)


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-04-20 09:22:40

hastings69
Member
Registered: 2008-01-04
Posts: 56

Re: Changing settings via Telnet and Putty

Hi Mig, appreciate your imput as well, the below is the output.......


First part

drwxrwxrwx   16 root     root         4096 Apr 20 10:44 .
drwxr-xr-x    4 root     root         1024 Apr 19 18:52 ..
drwxrwxrwx    2 root     root         4096 Apr 19 18:32 .lpd
drwx------    6 root     root         4096 Apr 20 16:53 .systemfile
drwxrwxrwx    4 nobody   501          4096 Dec 18 22:27 Acronis Backups
-rwxrwxrwx    1 nobody   501          1852 Apr 15  2007 INSTALL
drwxrwxrwx    3 nobody   501         28672 Jan 27 10:02 Itunes
drwxrwxrwx   13 nobody   501          4096 Feb 24 20:25 Lorraine Docs Sync
drwxrwxrwx    4 admin    500          4096 Feb  2 10:07 Photos
drwxrwxrwx    4 nobody   501          4096 Jan 19 14:26 Program Backup
-rwxrwxrwx    1 nobody   501             0 Apr  6 16:38 SDT9602.tmp
-rwxrwxrwx    1 nobody   501             0 Apr  6 18:47 SDT9DC1.tmp
-rwxrwxrwx    1 nobody   501             0 Apr  6 18:45 SDTAB6.tmp
drwxrwxrwx   16 nobody   501          4096 Mar 29 10:28 Steve Docs Sync
drwxrwxrwx    3 nobody   501          4096 Jan 19 14:28 Talking Books
drwxrwxrwx    4 nobody   501          4096 Jan 26 16:18 Videos
-rwxrwxrwx    1 nobody   501        891228 Oct 30  2006 busybox3
drwxr-xr-x   20 root     root         4096 Apr 19 20:00 etch
-rwxrwxrwx    1 nobody   501     176803840 Apr 19 19:00 etch.tar
-rwxr-xr-x    1 nobody   501          1208 Dec 30 18:44 fun_plug
-rwxrwxrwx    1 nobody   501          1563 Apr 20 10:44 fun_plug (2)
drwxr-xr-x    6 root     root         4096 Dec 30 17:06 fun_plug.d
-rwxrwxrwx    1 nobody   501       1910725 Apr 19 18:45 funplug-0.3.tar.gz
drwxrwxrwx    2 nobody   501          4096 Dec 30 17:17 lnx_bin
-rwxrwxrwx    1 nobody   501           351 Oct 30  2006 starttelnet.sh
-rwxr-xr-x    1 root     root          118 Dec 30 18:44 starttwonky.sh
drwxr-xr-x    6 root     root         4096 Apr 20 13:06 twonky
-rwxrwxrwx    1 nobody   501         56425 Oct 30  2006 utelnetd

second

uid=0(root) gid=0(root)

Third
/ # file /mnt/HD_a2/videos
/mnt/HD_a2/fun_plug.d/bin/sh: file: not found

Where can I go from here?

Offline

 

#8 2008-04-20 10:15:53

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

Re: Changing settings via Telnet and Putty

O.K. I see the problem,

The Linux operating system that the DNS-323 uses is case sensitive
you have a directory called 'Videos' but you are trying to access it
by using 'videos'.  Try

/ # cd /mnt/HD_a2/Videos

Another tip... Linux uses spaces to separate tokens on the command line,
this can be a problem if you have spaces in your directory name like:
'Acronis Backups'   You can use quotations or backslashes to work with
file and directory names with spaces

/ # cd "/mnt/HD_a2/Acronis Backups"

or

/ # cd /mnt/HD_a2/Lorraine\ Docs\ Sync

Last edited by mig (2008-04-20 10:25:34)


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

 

#9 2008-04-20 11:13:41

hastings69
Member
Registered: 2008-01-04
Posts: 56

Re: Changing settings via Telnet and Putty

Fantastic, we have it. THANKYOU, yes I really did yell that.

Now with ths command line I now chmod 777?

chmod 777 cd /mnt/HD_a2/Photos/Christmas/Santa.jpg

And could I chmod 777 whole folders such as
chmod 777 /mnt/HD_a2/Photos
(I have 1000's that would need changing)

Thanks for being patient.

Offline

 

#10 2008-04-20 19:27:35

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: Changing settings via Telnet and Putty

hastings69 wrote:

chmod 777 /mnt/HD_a2/Photos

nearly - try

Code:

chmod -R 777 /mnt/HD_a2/Photos

The -R makes it recursive (the command cascades down the folder tree ...)

BTW, you can get simple help for a command by typing, for example,

Code:

chmod --help

Normally on Linux you can type 'man chmod' (or some other command name) to get more detailed instructions, but the DNS323 doesn't have the manual pages inside it. However searching for 'man chmod' in google will find you what you want. (Hopefully any differences between the manual page that you find with google and the version of the command that you have in your DNS323 will be irrelevant ;-)

BTW, this Google search: http://www.google.co.uk/search?q=unix+command+line brought back this useful looking reference: http://freeengineer.org/learnUNIXin10minutes.html

Last edited by sjmac (2008-04-20 19:32:13)

Offline

 

#11 2008-04-21 12:06:52

hastings69
Member
Registered: 2008-01-04
Posts: 56

Re: Changing settings via Telnet and Putty

Sorry to Bump this to the top, this is not my intention.
I just want to say.

THANKYOU!

These problems are solved!

THANKS to SMJAC and MIG

Thanks to all before me that have developed the hacks like the Fun_plug,


For those who are newbs and new to the DNS, unsure whether to Fun_plug/TELNET/Putty or not - HELL YEAH.

I am a complete newb, and have managed to achieve it, just go for it!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB