Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
henrikg wrote:
Are there any way of protecting the telnet server ?
With username + password.
ok - it is just sitting there on my intranet and I can disable it, but it could be rather handy to have it enabled - and I don΄t like the though of having anything with important data on it just sitting there unprotected....
make telnet start a login program (instead of directly jumping into a shell), it'll prompt for username and password then.
if you're using a busybox-based telnetd, it's "telnetd -l /path/to/login".
Offline
Do I have to install my own login program or can I use the one that the dns-323 uses for "normal" logins to the admin interface or samba ?
Offline
should work with the shipped /bin/login. note, however, that /bin/sh (the shell that login will probably start) is a bit "non-standard", see http://dns323.kood.org/forum/p1701-2007 … html#p1701
Offline
henrikg wrote:
Do I have to install my own login program or can I use the one that the dns-323 uses for "normal" logins to the admin interface or samba ?
To avoid my kids acting like root (too young) I did like this.
I created my own login script (see ps below)
magic.sh:
#!/bin/sh echo -n Type the magic code: if ( head -n 2 | grep 'dns-323' > /dev/null 2>&1 ); then echo OK /mnt/HD_a2/lnx_bin/sh else echo Sorry ... sleep 2 exit fi
And alternateded the telnet startup (starttelnet.sh) by this:
#/mnt/HD_a2/lnx_bin/utelnetd -l /bin/login -d /mnt/HD_a2/lnx_bin/utelnetd -l /mnt/HD_a2/magic.sh -d
So on Windows telnet
Successfully telnet login wrote:
stdin, stdout, etderr: 0 1 2
Type the magic code:dns-323
OK
BusyBox v1.2.1 (2006.10.30-10:27+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
#
or
Unsuccessfully telnet login wrote:
stdin, stdout, etderr: 0 1 2
Type the magic code:BADC0DE
Sorry ...
Connection to host lost.
PS. After some googling I found that "-l /bin/login" was a natural choice, but I was not able to make it work to login as root! (I guess I had to look into the link provided by fonz, - crossing posts)
Last edited by FIB (2007-03-13 17:57:59)
Offline
The last script works terrific.
Thanks for the code.
And now I can also keep my son away :-) and the whole family can blame only me and myself when the device gets broken....
Offline
Well I'm going to make the leap and fun_plug my DNS-323. I'm tired of waiting for D-Link fix the UPNP AV server. The link in the how to Telnet wiki that points to the three files needed for telnet (busybox, utelnet, starttelnet.sh) is giving me a 404 error. Is there another location where can I get them?
Thanks in advance.
Blutox
Offline
Things at KRH server look messy. If someone have these files he/she could upload them to wiki. Or eventually I could setup a better managed download section for DNS-323.
Offline
Thank you KRH, I got the files and eveything installed and worked great. I used notepad ++ for file editting and puTTy for my windows telnet client. Now I just need to learn some Linux syntax.
-Blutox
Offline
Hi Guys,
Can anyone tell me where can i download the telnet package? I cant seem to download from khr.
Please help.....;o(
snake
Offline
KRH wrote:
yes its a mess and i relly dont have time to fix the dns323.info. my rar file will come up later today i had to change server, the old one had some hw issues.
Consider uploading your files to wiki or http://download.dns323.info/ instead of current place.
Offline
haha and its my server yes sorry
(i kind of uploaded the rar to help ppl budt its kind of got stuck in the wiki and nobody did write some better documeted start file) *HINT*
[over and out kind of drunk...]
Last edited by KRH (2007-04-27 23:13:22)
Offline
KRH wrote:
haha and its my server yes sorry
(i kind of uploaded the rar to help ppl budt its kind of got stuck in the wiki and nobody did write some better documeted start file) *HINT*
[over and out kind of drunk...]
whats your server? wiki is located at mine with uptime
Offline
KRH wrote:
(i kind of uploaded the rar to help ppl budt its kind of got stuck in the wiki and nobody did write some better documeted start file) *HINT*
Here's a direct link where you can just browse your file and upload. PHP allows up to 2MB upload.
http://dns323.kood.org/lib/exe/mediaman … p?ns=howto
PS: before clicking you should log in to wiki
Offline
I have tried the Telnet install guide (the simple one), it just don't work. While the others, the ones with more files, always works (bearbrick). So I think the wiki needs to rather point to those other files, because it is very frustrating as a beginner to do the same task over and over without getting it to work.
Maybe a compability issue with 1.0.3 firmware or something?
Offline
Apskaft wrote:
The wiki is currently quite hard to follow and will most likely be updated. I think this post might make it easier for you.
However, keeping it as technical as it is has its points too. When inside the box using telnet you can very easily brick your unit.
The 'script' you're referring to is not a script but rather a set of commands to be used from a Linux machine after HDD_1/Volume_1 has been mounted on the local /mnt.
edit Whatever. I updated the Wiki. If the description there is to hard to follow I cannot reccomend you to continue. And please, please, please remember that using telnet to the DNS-323 you can easliy brick/destroy your unit. Even the slightes mistake will make it unusable. Ctrl-Z will not work
/Apan
Given the fact that the filesystem resides on flash memory, aren't the warnings on bricking the unit somewhat alarmist? Can I really remove and edit files on flash memory that easily?
I'm not concerned about the data on the drives - that's a backup copy and I have the original elsewhere, so locking it up and having to pull the drives and reformat is not an issue.
Last edited by fordem (2007-05-26 18:07:29)
Offline
Install Fonz's fun_plug (there's a thread on it w/all the info)...it provides telnet that works every time, I'm using it on 1.03.
http://dns323.kood.org/forum/t422-Updated-fun-plug.html
Also includes several other utilities you can use (or not) if you like.
Offline