免费注册 查看新帖 |

Chinaunix

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

[FTP] FTP无法修改文件名 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-10-08 17:23 |只看该作者 |倒序浏览
我使用proftpd-1.2.9和proftpd-mod-quotatab-1.2.11实现磁盘限额,发现一个问题,就是无法修改文件名,出现没有权限的提示:Rename permission denied。不知何因?
这是我的配置文件:
ServerName                        "Superdream FTP Server"
ServerType                        standalone
DefaultServer                        on
Port                                21
Umask                                022
MaxInstances                        30
MaxLoginAttempts                3
User                                nobody
Group                                nobody
MaxHostsPerUser 1 "对不起,每个帐号最多允许来源ip为1个"
MaxClientsPerUser 1 "对不起,每个帐号在每个客户端最多可以同时登录1次"
MaxClientsPerHost 1 "对不起,同一个客户端只能最多1个帐号可以登录"
RootLogin off
RequireValidShell off
TimeoutStalled 10
MaxClients 10
AllowForeignAddress on
AllowStoreRestart on
ServerIdent off
DefaultRoot ~ ftpgroup
#DefaultRoot ~ ftpuser
SystemLog /usr/local/proftpd/logs/ftp.log
TransferLog /usr/local/proftpd/logs/ftp.transfer.log
AllowRetrieveRestart on
AllowStoreRestart on

#For quota configure
QuotaDirectoryTally on
QuotaDisplayUnits Mb
QuotaEngine on
QuotaLog /usr/local/proftpd/logs/Quota.log
QuotaShowQuotas on
#SQLDefaultGID 5500
#SQLDefaultUID 5500
SQLConnectInfo ftpdb@localhost proftpd 123456
SQLAuthTypes Backend Plaintext
SQLUserInfo ftpuser userid passwd uid gid homedir shell
SQLGroupInfo ftpgroup groupname gid members
SQLAuthenticate users* groups*
SQLHomedirOnDemand on
SQLLog PASS updatecount
SQLNamedQuery updatecount update "count=count+1,accessed=now() where userid='%u'" ftpuser
SQLLog STOR,DELE modified
SQLNamedQuery modified update "modified=now() where userid='%u'" ftpuser
SQLNamedQuery get-quota-limit select "name, quota_type, per_session, limit_type, bytes_in_avail, bytes_out_avail, bytes_xfer_avail, files_in_avail, files_out_avail, files_xfer_avail from ftpquotalimits where name='%{0}' and quota_type='%{1}'"
SQLNamedQuery get-quota-tally select "name, quota_type, bytes_in_used, bytes_out_used, bytes_xfer_used, files_in_used, files_out_used, files_xfer_used from ftpquotatallies where name='%{0}' and quota_type='%{1}'"
SQLNamedQuery update-quota-tally update "bytes_in_used = bytes_in_used + %{0}, bytes_out_used = bytes_out_used + %{1}, bytes_xfer_used = bytes_xfer_used + %{2}, files_in_used = files_in_used + %{3}, files_out_used = files_out_used + %{4}, files_xfer_used = files_xfer_used + %{5} where name='%{6}' and quota_type='%{7}'" ftpquotatallies
SQLNamedQuery insert-quota-tally insert "%{0},%{1},%{2},%{3},%{4},%{5},%{6},%{7}" ftpquotatallies
QuotaLimitTable sql:/get-quota-limit
QuotaTallyTable sql:/get-quota-tally/update-quota-tally/insert-quota-tally
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP