免费注册 查看新帖 |

Chinaunix

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

[FTP] 匿名用户ftp可以下载无法上传,权限已给 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-31 17:30 |只看该作者 |倒序浏览
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=YES
在客户端建立或者上传文件都无法操作 提示错误550

论坛徽章:
0
2 [报告]
发表于 2009-03-31 19:16 |只看该作者
Selinux  

目录权限

论坛徽章:
0
3 [报告]
发表于 2009-03-31 19:40 |只看该作者
被访问的ftp的目录文件夹默认的权限755,可以更改为其他的么?

论坛徽章:
0
4 [报告]
发表于 2009-03-31 20:01 |只看该作者
设置成777

论坛徽章:
0
5 [报告]
发表于 2009-03-31 21:31 |只看该作者
777权限太大了把

论坛徽章:
0
6 [报告]
发表于 2009-04-01 08:51 |只看该作者

回复 #1 troywin 的帖子

应该是selinux的问题

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
7 [报告]
发表于 2009-04-01 08:59 |只看该作者
setenforce 0
看看

论坛徽章:
0
8 [报告]
发表于 2009-04-01 09:23 |只看该作者

回复 #5 troywin 的帖子

看着大,但是应用中就不大了。
你可以先试试。

论坛徽章:
0
9 [报告]
发表于 2009-04-01 12:38 |只看该作者
vsftp   如果想匿名上传,必须在
/var/ftp    下面在建立一个目录,专门用于上传文件 ,不能直接把文件放到 /var/ftp 这个目录中 。并且 默认情况下/var/ftp 这个目录的权限是 755 ,不需要任何修改的。

论坛徽章:
0
10 [报告]
发表于 2009-04-01 16:46 |只看该作者
selinux开启也可以上传下载,只要把相应的bool值改掉就可以了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP