免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4682 | 回复: 5
打印 上一主题 下一主题

HPUX11.00,如何限制ftp [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-09 17:42 |只看该作者 |倒序浏览
hpux11.00系统,想限制某用户只能ftp,不能telnet。
且,ftp限制在一个特定的目录下。

使用HP自带的ftp软件,如何实现?

谢谢!

论坛徽章:
0
2 [报告]
发表于 2005-11-09 18:19 |只看该作者
兄弟,你可以使用VI编辑这个文件
# more /var/adm/inetd.sec
# @(#)B.11.11_LRinetd.sec $Revision: 1.10.214.1 $ $Date: 96/10/08 13:20:06 $
#
#
# The lines in the file contain a service name, permission field and
# the Internet addresses or names of the hosts and/or networks
# allowed to use that service in the local machine.
# The form for each entry in this file is:
#
# <service name>   <allow/deny>  <host/network addresses, host/network names>
#
# For example:
#
# login         allow   10.3-5 192.34.56.5 ahost anetwork
#
# The above entry allows the following hosts to attempt to access your system
# using rlogin:
#               hosts in subnets 3 through 5 in network 10,
#               the host with Internet Address of 192.34.56.5,
#               the host by the name of \"ahost\",
#               all the hosts in the network \"anetwork\"
#
# mountd      deny    192.23.4.3
#
# The mountd entry  denies host  192.23.4.3  access to the NFS  rpc.mountd
# server.
#
# Hosts and network names must be official names, not aliases.
# See the inetd.sec(4) manual page for more information.
dtspc   allow   127.0.0.1       loopback C3600
#
最后一行添加
ftp deny 192.168.0.1
telnet allow 192.168.0.1

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
3 [报告]
发表于 2005-11-11 13:50 |只看该作者
上面的是针对主机不是用户吧···

限制特定目录的话以前应该有相关帖子··

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
4 [报告]
发表于 2005-11-11 14:02 |只看该作者
如果限制此外的其他用户登录,在/etc/profile里加入下面这段代码可以实现控制用户登录
NAME=`grep $LOGNAME /etc/NOTLOGIN`
if [ \"$LOGNAME\" = \"$NAME\" ]
then
echo \"You are not allowed to login in !!!\"
exit
fi
将不允许登录的用户名写入/etc/NOTLOGIN内

帮你找到了这个东东,不知道行不行  偶这边没环境···测试好了 要说说···

论坛徽章:
0
5 [报告]
发表于 2005-11-11 14:11 |只看该作者
111

[ 本帖最后由 ttwking 于 2005-11-11 14:16 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2005-11-23 18:33 |只看该作者

将限制用户名写入/etc/NOTLOGIN

将限制用户名写入/etc/NOTLOGIN
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP