`
itspace
  • 浏览: 959089 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

AIX 关闭ftp服务

阅读更多

很多情况下,比如处于安全考虑,我们需要关闭ftp服务。在AIX平台下可以采用如下方法。
一、检查代理服务进程(inetd,很多平台如linux,已经被xinetd所取代)是否存在。
引用
# ps -ef|grep inetd
    root 18892 39822   0   Mar 04      -  0:00 /usr/sbin/inetd
    root 43704 56780   0 23:21:22  pts/0  0:00 grep inetd

检查ftp端口是否已经更改,也可以在/etc/services中查看
引用
# netstat -Aan|grep 21
70dec210 tcp        0      0  *.21               *.*                LISTEN

查看进程号
引用
# rmsock  70bf1210 tcpcb
The socket 0x70bf1008 is being held by proccess 18892 (inetd).


使用rmsock需要注意的是
rmsock is used to remove sockets that do not have file descriptors. However, rmsock doesn’t remove a socket that still has a valid file descriptor but, instead, returns the identity of the process owner.

二、修改/etc/inetd.conf,注释ftp一行。
三、刷新代理服务
引用
# refresh -s inetd
0513-095 The request for subsystem refresh was completed successfully.

或者刷新tcpip
引用
# refresh -g tcpip
0513-095 The request for subsystem refresh was completed successfully.
0513-036 The request could not be passed to the rwhod subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the xntpd subsystem.
Start the subsystem and try your command again.
0513-095 The request for subsystem refresh was completed successfully.
0513-095 The request for subsystem refresh was completed successfully.
0513-095 The request for subsystem refresh was completed successfully.
0513-095 The request for subsystem refresh was completed successfully.
0513-036 The request could not be passed to the dpid2 subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the dhcpcd subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the dhcpcd6 subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the ndpd-host subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the ndpd-router subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the tftpd subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the gated subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the named subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the routed subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the iptrace subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the timed subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the dhcpsd subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the dhcpsdv6 subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the dhcprd subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the mrouted subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the pxed subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the binld subsystem.
Start the subsystem and try your command again.
0513-036 The request could not be passed to the dfpd subsystem.
Start the subsystem and try your command again.
0513-095 The request for subsystem refresh was completed successfully.


检查客户端是否能连接至主机,可以看到ftp服务已经被关闭
引用
D:\>ftp 172.16.4.2
Connected to 172.16.4.2.
Connection closed by remote host.



0
1
分享到:
评论

相关推荐

    aix系统中ftp用户建立

    详细描述了如何在aix6.1中设置ftp服务,设定用户权限。

    AIX 7.2 AIX 7.1 AIX 7100 AIX 7200

    此资源为AIX7.2版本 cd1和cd2,已经上传度盘 aix_7200-04-02-2027_1of2_072020.iso aix_7200-04-02-2027_2of2_072020.iso 通过qemu-system-ppc程序能在X86平台安装运行 此资源为AIX7.1版本 cd1和cd2 AIX_7.1_Base_...

    AIX下安装wu-ftp

    一个增强的FTP服务器软件——wu-ftpd 本文向AIX用户介绍了世界上广泛使用的ftp服务器软件wu-ftpd的安装以及系统配置。

    FTP常用命令;AIX-ZOS传输文件

    搜集常用FTP命令,window和ADCD主机之间传递文件的方法,配合adrdssu工具的时候,实现各个zos之间的文件传输备份,也可以用于AIX小机和zos之间文件传输

    AIX服务器启动过程

    关于AIX服务器的启动异常处理等问题的描述,资源紧缺不容错过

    Aix更新ssh服务

    小型机AIX系统安装或更新ssh服务,通过验证可用,大概可以试一下

    IBM AIX服务器维护手册

    IBM AIX服务器维护手册

    AIX命令AIX命令AIX命令

    AIX命令AIX命令AIX命令AIX命令AIX命令AIX命令

    AIX下的邮件服务器安装

    以Lotus Domino Server R5 邮件服务器为例,说明在AIX 4.3版本下安装与配置过程。

    AIX中NFS服务的配置

    本文档详细记述了一次AIX下NFS服务的配置全过程,希望对您有所用处

    AIX资料AIX资料AIX资料

    AIX资料AIX资料AIX资料AIX资料AIX资料

    aix 文档 aix 文档

    aix 文档aix 文档 aix 文档 aix 文档 aix 文档 aix 文档aix 文档aix 文档aix 文档aix 文档aix 文档aix 文档aix 文档

    IBM小型服务器AIX教程

    IBM服务器专用UNIX系列操作系统AIX,以其稳定及安全性备受广大专业人士喜爱!

    AIX 系统启动与关闭

    AIX 系统启动与关闭

    AIX 系统维护下载

    第 5 楼:常用AIX论坛地址、资料下载地址、FTP地址 第 6 楼:AIX操作系统使用心得 第 7 楼:AIX环境如何找到活动最频繁的进程 第 8 楼:AIX中查看用户对系统资源的使用情况 第 9 楼:AIX的系统备份和恢复 第 10 楼:...

    aix vi aix vi

    aix vi command aix vi command aix vi command aix vi command

    Aix 命令大全

    第 5 楼:常用AIX论坛地址、资料下载地址、FTP地址 第 6 楼:AIX操作系统使用心得 第 7 楼:AIX环境如何找到活动最频繁的进程 第 8 楼:AIX中查看用户对系统资源的使用情况 第 9 楼:AIX的系统备份和恢复 第 10 楼:...

    AIX 5300-08搭建SVN服务器

    AIX 5300-08搭建SVN服务器 IBM AIX 上搭建SVN服务器

    aix系统启动与关闭过程

    aix系统启动与关闭过程介绍

    AIX中配置防火墙策略.doc

    为了保护 AIX 服务器,避免不必要的访问,最好的办法就是在 AIX 中实施 IP 过滤规则。在 AIX 中我们通过设置 IP 过滤规则 (IP Security Filter),只接受预先定义好的访问请求而拒绝其他的访问的请求。

Global site tag (gtag.js) - Google Analytics