Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hello everyone, and thanks for reading this.
First of all, my Linux/Unix skills are very limited, I'm learning basics but I love it.
My box is a DNS-323 with fun_plug vers. 0.5.
Question, I followed the best I could all the steps mentionned here: http://dns323.kood.org/howto:ffp also http://techblog357.blogspot.com/2007/08 … using.html
Everything is working great, I can connect to my box VIA SSH, I'm really happy.
The only thing: I can still connect to my box VIA Telnet. I want to disable telnet but I doesn't seems to work.
-------------------------------------------
I've tried:
cd /mnt/HD_a2/fun_plug.d/start
chmod a-x telnetd.sh
also
cd /ffp/start
chmod a-x telnetd.sh
chmod a+x sshd.sh
---------------------------------------------
Still no luck, I can still login as root without password being ask with this unsecure protocol.
Note: When I logon as telnet I'm getting:
-----------------------------------------------------------------------------------
BusyBox v1.12.0.svn (2008-07-11 12:43:14 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
-----------------------------------------------------------------------------------
Any help would be much appreciated.
Regards.
Offline
Did you reboot after 'chmod a-x telnetd.sh'?
Offline
Read the text. You installed ffp 0.5 and followed a howto for funplug-0.3...
There should have been errors reported by chmod, like 'cannot access' ;)
#chmod a-x /ffp/start/telnetd.sh
does the job, you still need to reboot or stop telnetd with
#sh /ffp/start/telnetd.sh stop
Last edited by hell0 (2009-01-31 19:52:00)
Offline
Thanks for your quick reply guyz.
Yes I did reboot after.
When I'm trying
#chmod a-x /ffp/start/telnetd.sh
and
#sh /ffp/start/telnetd.sh stop
I'm getting:
root@NAS:~# chmod a-x /ffp/start/telnetd.sh
root@NAS:~# sh /ffp/start/telnetd.sh stop
WARNING: telnetd: Not running
Could the Telnet service comes ... from something else ?
I'm confused!
Thanks
Offline
JeanDit wrote:
Could the Telnet service comes ... from something else ?
Yes, it could. Just a quick thought off the top of my head, but have you put a different firmware on the box? Some custom firmware has a built in telnet daemon. It is also possible to install a telnet daemon without ffp, or in addition to - so you could have the ffp telnet binary on disk but not running, but a telnet daemon running from another location. See the wiki how to telnet for possibilities to get telnet. Look in the fun_plug and ffp.log (and post them if the other suggestions have not worked) to see if telnet is being run from ffp.
Offline
Content of fun_plug:
--------------------------------------------------------------------
#!/bin/sh
# switch to safe working directory on ramdisk
cd /
# write a log, in case sth goes wrong
FFP_LOG=/mnt/HD_a2/ffp.log
#FFP_LOG=/dev/null
exec >>$FFP_LOG 2>&1
# real path to ffp
FFP_PATH=/mnt/HD_a2/ffp
# where to search for the install tarball
FFP_TARBALL=/mnt/HD_a2/fun_plug.tgz
# setup script (used for ffp on USB disk)
FFP_SETUP_SCRIPT=/mnt/HD_a2/.bootstrap/setup.sh
# rc file path
FFP_RC=/ffp/etc/rc
echo "**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****"
date
# check for setup script. an example use for this is to load USB
# kernel modules and mount a USB storage device. The script is
# sourced, that means you can change variables, e.g. FFP_PATH to point
# to the USB device.
if [ -x $FFP_SETUP_SCRIPT ]; then
echo "* Running $FFP_SETUP_SCRIPT ..."
. $FFP_SETUP_SCRIPT
fi
# create /ffp link
echo "ln -snf $FFP_PATH /ffp"
ln -snf $FFP_PATH /ffp
# install tarball
if [ -r $FFP_TARBALL ]; then
echo "* Installing $FFP_TARBALL ..."
mkdir -p $FFP_PATH && tar xzf $FFP_TARBALL -C $FFP_PATH && /ffp/bin/tar xzf $FFP_TARBALL -C $FFP_PATH
if [ $? -eq 0 ]; then
echo "* OK"
fi
rm $FFP_TARBALL
fi
# suid busybox
if [ -x /ffp/bin/busybox ]; then
chown root.root /ffp/bin/busybox
chmod 0755 /ffp/bin/busybox
chmod u+s /ffp/bin/busybox
fi
# run fun_plug.init, if present
if [ -x /ffp/etc/fun_plug.init ]; then
echo "* Running /ffp/etc/fun_plug.init ..."
/ffp/etc/fun_plug.init
fi
# run fun_plug.local, if present
if [ -x /ffp/etc/fun_plug.local ]; then
echo "* Running /ffp/etc/fun_plug.local ..."
/ffp/etc/fun_plug.local
fi
# run commands
if [ -x $FFP_RC ]; then
echo "* Running $FFP_RC ..."
$FFP_RC
echo "* OK"
else
echo "$FFP_RC: Not found or not executable"
fi
--------------------------------------------------------------------
Content of ffp.log
--------------------------------------------------------------------
**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
Sat Jan 31 10:18:21 GMT 2009
ln -snf /mnt/HD_a2/ffp /ffp
* Installing /mnt/HD_a2/fun_plug.tgz ...
tar: WARNING: Converting hard link to symlink
tar: WARNING: Converting hard link to symlink
(I HAVE 20 PAGES LONG of that error!)
tar: WARNING: Converting hard link to symlink
tar: WARNING: Converting hard link to symlink
* OK
* Running /ffp/etc/fun_plug.init ...
* Running /ffp/etc/rc ...
* /ffp/start/syslogd.sh inactive
* /ffp/start/SERVERS.sh inactive
* /ffp/start/portmap.sh inactive
* /ffp/start/unfsd.sh inactive
* /ffp/start/nfsd.sh inactive
* /ffp/start/ntpd.sh inactive
* /ffp/start/LOGIN.sh inactive
* /ffp/start/telnetd.sh ...
Starting /ffp/sbin/telnetd -l /ffp/bin/sh
* /ffp/start/sshd.sh inactive
* /ffp/start/rsyncd.sh inactive
* /ffp/start/mediatomb.sh inactive
* /ffp/start/kickwebs.sh inactive
* /ffp/start/lighttpd.sh inactive
* /ffp/start/inetd.sh inactive
* OK
**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
Sat Jan 31 12:25:49 GMT 2009
ln -snf /mnt/HD_a2/ffp /ffp
* Running /ffp/etc/fun_plug.init ...
* Running /ffp/etc/rc ...
* /ffp/start/syslogd.sh inactive
* /ffp/start/SERVERS.sh inactive
* /ffp/start/portmap.sh inactive
* /ffp/start/unfsd.sh inactive
* /ffp/start/nfsd.sh inactive
* /ffp/start/ntpd.sh inactive
* /ffp/start/LOGIN.sh inactive
* /ffp/start/telnetd.sh inactive
* /ffp/start/sshd.sh ...
Starting /ffp/sbin/sshd
* /ffp/start/rsyncd.sh inactive
* /ffp/start/mediatomb.sh inactive
* /ffp/start/kickwebs.sh inactive
* /ffp/start/lighttpd.sh inactive
* /ffp/start/inetd.sh inactive
* OK
**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
Sat Jan 31 12:56:01 GMT 2009
ln -snf /mnt/HD_a2/ffp /ffp
* Running /ffp/etc/fun_plug.init ...
* Running /ffp/etc/rc ...
* /ffp/start/syslogd.sh inactive
* /ffp/start/SERVERS.sh inactive
* /ffp/start/portmap.sh inactive
* /ffp/start/unfsd.sh inactive
* /ffp/start/nfsd.sh inactive
* /ffp/start/ntpd.sh inactive
* /ffp/start/LOGIN.sh inactive
* /ffp/start/telnetd.sh inactive
* /ffp/start/sshd.sh ...
Starting /ffp/sbin/sshd
* /ffp/start/rsyncd.sh inactive
* /ffp/start/mediatomb.sh inactive
* /ffp/start/kickwebs.sh inactive
* /ffp/start/lighttpd.sh inactive
* /ffp/start/inetd.sh inactive
* OK
--------------------------------------------------------------------
Hmmmm so I guess ...
If * /ffp/start/telnetd.sh inactive than you are right, it's comming from elsewhere ...
Wow. I guess ill do as you suggested and take a look at the firmware thing.
If ever that is the problem, I guess it will be another challenge to stop telnet ... and maybe other stuff running, who knows ...
Thanks a lot for the help, again, it is much appreciated ![]()
Last edited by JeanDit (2009-02-01 00:48:31)
Offline
Ok, after double checking, luusac, you are right.
http://dns323.kood.org/howto:telnet
This as been followed. The firmware as been flashed with a version that is openning Telnet. (I'm shy now... not proud)
Is there any ways to have this Telnet blocked ?
Should I try to put back to original firmware (if yes, where can I find a save place to download it?)
Any ways of doing all this without losing all my actual fun_plug setup ?
Damn, I was so close to have everything running perfect!
Last edited by JeanDit (2009-02-01 00:47:16)
Offline
Ok ... Great, I just flashed the modified firmware back with the original firmware (I used same old version 1.05 instead of 1.06, just in case) and everyhting is working fine.
NO MORE TELNET WOOOT
Thanks everyone for your help, the case is close!
<3
Offline