Moxa V2401-CE [32/108] Disabling the telnet ftp server

Moxa V2401-CE [32/108] Disabling the telnet ftp server
V2401/2402 Series Linux User’s Manual Managing Communications
3-5
For example, use the following commands to set /dev/ttyM0 to RS-422:
The V2401-LX contains an additional RS-232 connector to connect eight RS-232 devices. The
corresponding device nodes in Linux are ttyM8 to ttyM15.
Telnet/FTP Server
In addition to supporting Telnet client/server and FTP client/server, the V2401/2402-LX also
supports SSH and sftp client/server. To enable or disable the Telnet/ftp server, you need to edit the
file /etc/inetd.conf.
1. Mount the root file system with write permission.
2. Type # cd /etc to change the directory.
3. Type # vi inetd.conf to edit the configuration file.
Enabling the Telnet/FTP Server
The following example shows the default content of the file /etc/inetd.conf. The default is to
“enable the Telnet/ftp server:”
Disabling the Telnet/FTP Server
Disable the daemon by typing “#” in front of the first character of the row to comment out the line.
For example, to disable the FTP server, use the following commands:
MOXA:/ dev# setinterface /dev/ttyM0
Usage: setinterface device-node [interface-no]
device-node - /dev/ttyM0 /dev/ttyM3
interface-no - following:
0 - set to RS232 interface
1 - set to RS485-2 WIRES interface
2 - set to RS422 interface
3 - set to RS885-4 WIRES interface
MOXA:/ dev# setinterface /dev/ttyM0 0
MOXA:/ dev# setinterface /dev/ttyM0 2
discard dgram udp wait root /bin/discard
discard stream tcp nowait root /bin/discard
telnet stream tcp nowait root /bin/telnetd
ftp stream tcp nowait root /bin/ftpd -l
MOXA:~# mount -o remount,rw /dev/
s
d
a
1
/
MOXA:~# cd /etc
MOXA:/etc# vi inetd.conf

Содержание

Похожие устройства

Скачать