Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hello,
I think i followed correctly all the tutorial and check all topics from people that had problem like me, but at this time I still cannot connect to my dsm g600 with telnet.
This is what i did:
- Download and unpack busybox-telnetd-1.2.1.tar.bz2
- Created a file that i named fun_plug.sh and put inside:
#!/bin/sh
if [ ! -e /mnt/HD_a2/ash ]
then
ln -s /mnt/HD_a2/busybox /mnt/HD_a2/ash
fi
if [ ! `grep root /etc/shadow` ]
then
echo kontroll.`grep admin /etc/shadow` >> /etc/shadow
/mnt/HD_a2/sed -i -e 's/kontroll.admin/root/' /etc/shadow
fi
/mnt/HD_a2/sed -i -e 's/root:.*/root:x:0:0:Linux User,,,:\/:\/mnt\/HD_a2\/ash/' /etc/passwd
cd /dev && /mnt/HD_a2/busybox makedevs ptyp c 2 0 0 9
cd /dev && /mnt/HD_a2/busybox makedevs ttyp c 3 0 0 9
/mnt/HD_a2/busybox telnetd &
- I upload by ftp with File Zilla those three files in HD_a2; Then rigth click on each ob those three file and set the permission to 777 for all.
- I rebooted my NAS and then from a shell type: telnet 10.0.0.101
And I have this error:
telnet: Unable to connect to remote host: Connection refused
I am turning around and around to fix that problem but I am stuck!
Any idea? I did something wrong?
Thanks for help in advance.
Swan
Last edited by Swan (2011-02-05 10:57:20)
Offline
The script should be called 'fun_plug', and not 'fun_plug.sh'
Offline
Hi Mijzelf,
Thanks a lot for your help.
I change the name of the script as per your suggest but still not working: connexion by telnet is still refused.
If you have any other idea, you are welcome
Thank you
Mijzelf wrote:
The script should be called 'fun_plug', and not 'fun_plug.sh'
Offline
Another often made mistake is wrong line endings. The file has to have Linux line endings, so creating the fun_plug with - for instance - Notepad will not do.
Offline