免费注册 查看新帖 |

Chinaunix

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

在SOL9中设置anonymous ftp [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-03-29 23:35 |只看该作者 |倒序浏览
Due to the addition of wu-ftp (SUNWftpr, SUNWftpu) into Solaris 9 the procedure to create an anonymous ftp server has radically changed from Solaris 8. In Solaris 9 a new command has been added to assist the creation of an anonymous ftp server. This command is ftpconfig.

This command will copy and set up all the components needed to operate an anonymous FTP server, including creating the ftp user account, creating device nodes, copying /usr/lib files, and copying timezone data. The passwd and group files set up have been stripped down to prevent malicious users from finding login names on the server. The anonymous file area will be placed under ftpdir. If the ftp user account already exists, then the current FTP area is used, and the system files in it are updated. All other files are left untouched.

This command should be run to update the anonymous FTP area's configuration whenever a system patch is installed, or the system is upgraded.

EXAMPLE

=======

In this example you want your anonymous area to be called /anonymous.

# ftpconfig -d /anonymous
           

Running this command will create a chroot environment in the /anonymous directory. An anonymous user will ONLY be able to retrieve files from the directory specified in the allow-retrieve field of the /etc/ftpd/ftpaccess file. So by default this contains ....

# grep allow-retrieve /etc/ftpd/ftpaccess allow-retrieve relative class=anonusers /pub
           

Therefore in this example, the anonymous user can only retrieve files placed in the /anonymous/pub directory. If the anonymous user tries to access other files from the /anonymous directory, he will recieve the following error :

ftp>; get jonty
200 PORT command successful.
550 /jonty is marked unretrievable

论坛徽章:
0
2 [报告]
发表于 2003-03-30 08:28 |只看该作者

在SOL9中设置anonymous ftp

这么简单?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP