Moxa V2406-24I-CT-LX [29/81] Disabling the telnet ftp server

Moxa V2406-T-W7E [29/81] Disabling the telnet ftp server
V2406/2422/2426 Linux User’s Manual Managing Communications
3-5
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:
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
After you finish writing or modifying the code, remember to execute umount /to change the root directory
back to Read-only mode.
MOXA:~# umount /
DNS Client
The V2406/2422/2426-LX supports DNS client (but not DNS server). To set up DNS client, you need to edit
three configuration files: /etc/hostname, /etc/resolv.conf, and /etc/nsswitch.conf.
/etc/hostname
1. Mount the root file system with write permission.
MOXA:~# mount -o remount,rw /dev/hda1 /
2. Edit /etc/hostname:
MOXA:~# vi /etc/hostname
MOXA
3. After you finish writing or modifying the code, remember to execute umount /to change the root
directory back to Read-only mode.
MOXA:~# umount /
4. Re-configure the hostname.
MOXA:~# /etc/init.d/hostname.sh start
5. Check the new hostname.
MOXA:~# hostname
/etc/resolv.conf
This is the most important file that you need to edit when using DNS. For example, before using # ntpdate
time.stdtime.gov.tw to update the system time, you will need to add the DNS server address to the file. Ask
your network administrator which DNS server address you should use. The DNS servers IP address is specified
with the nameserver command. For example, add the following line to /etc/resolv.conf (assuming the DNS
servers IP address is 168.95.1.1):
nameserver 168.95.1.1

Содержание

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

Скачать