ManishGupta8 Posted December 6, 2018 Share Posted December 6, 2018 Hi Folks, I have following commands to disable Telnet and FTP but somehow even after restarting it never works and I can still do telnet to my unraid machine. If i run these commands directly from unraid terminal then telnet is stopped. Cant figure out why they are not working automatically after restart. root@Tower2:~# cd /boot/config root@Tower2:/boot/config# cat -A go =============> I am intentionally doing -A to see all non printable characters but if just do cat then i see as expected. #!/bin/bash^M$ # Start the Management Utility^M$ /usr/local/sbin/emhttp &^M$ ^M$ #Disable the Telnet On This Machine^M$ sed -i -e 's/^telnet/#telnet/' /etc/inetd.conf^M$ #Restarting After FTP Also Instead Of Restarting and Again restarting for Telnet and FTP^M$ #/etc/rc.d/rc.inetd restart^M$ ^M$ #Disable FTP On This Machine^M$ sed -i -e 's/^ftp/#ftp/' /etc/inetd.conf^M$ /etc/rc.d/rc.inetd restart ^M$ Simple cat output also root@Tower2:/boot/config# cat go #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & # Manish -- Anything Written Below Is Customized by manish # Manish - Disable the Telnet On This Machine sed -i -e 's/^telnet/#telnet/' /etc/inetd.conf # Manish - Restarting After FTP Also Instead Of Restarting and Again restarting for Telnet and FTP #/etc/rc.d/rc.inetd restart #Manish - Disable FTP On This Machine sed -i -e 's/^ftp/#ftp/' /etc/inetd.conf /etc/rc.d/rc.inetd restart Can someone please help what's wrong ? Quote Link to comment
JonathanM Posted December 6, 2018 Share Posted December 6, 2018 In the web GUI, go to system settings, identification, and set "use telnet" to NO. go to settings, network services, ftp server, set "ftp server" to Disabled. Quote Link to comment
ManishGupta8 Posted December 6, 2018 Author Share Posted December 6, 2018 49 minutes ago, jonathanm said: In the web GUI, go to system settings, identification, and set "use telnet" to NO. go to settings, network services, ftp server, set "ftp server" to Disabled. Jonathan - I followed your suggestion but now my GUI stopped working. I am not linux expert and hoping you can help me to have this fixed. Quote Link to comment
ManishGupta8 Posted December 6, 2018 Author Share Posted December 6, 2018 Thanks Jonathan it worked. It seems that when i mentioned GUI is not working it was restarting some service as now it seems to be working. Thanks. But can someone explain why it did not work when i tried to do via config/go file by adding command there ? Quote Link to comment
Squid Posted December 6, 2018 Share Posted December 6, 2018 1 hour ago, ManishGupta8 said: But can someone explain why it did not work when i tried to do via config/go file by adding command there Probably because the settings wound up undoing your change Quote Link to comment
ManishGupta8 Posted December 6, 2018 Author Share Posted December 6, 2018 Yeah that's why i thought and expecting experts to confirm the same. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.