Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Config/go file not working (Version 6.6.5 2018-11-08)

Featured Replies

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 ?

 

 

 

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.

  • Author
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.

  • Author

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 ?

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

  • Author

Yeah that's why i thought and expecting experts to confirm the same.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.