- 论坛徽章:
- 0
|
本帖最后由 zfyp2003 于 2010-05-14 09:43 编辑
本机环境是CentOS+Kloxo
在添加域名后,会生成一个以域名为用户名的FTP账户,用户使用这个账户可以上传文件,删除下载文件,默认权限0755。但就是不能修改文件内容。
但是txt文件用户可以自己修改文件的权限,php.xml,html不能被用户修改权限。
我现在的问题是要在那边设置能够使用户自己修改文件权限?
我付上我的pure-ftpd的配置文件。认证方式是文本认证。读写pureftpd.passwd文件- ChrootEveryone yes
- # TrustedGID 100
- BrokenClientsCompatibility no
- MaxClientsNumber 100
- Daemonize yes
- MaxClientsPerIP 8
- VerboseLog no
- DisplayDotFiles yes
- AnonymousOnly no
- NoAnonymous no
- SyslogFacility ftp
- # FortunesFile /usr/share/fortune/zippy
- DontResolve yes
- MaxIdleTime 15
- # LDAPConfigFile /etc/pure-ftpd/pureftpd-ldap.conf
- # MySQLConfigFile /etc/pure-ftpd/pureftpd-mysql.conf
- # PGSQLConfigFile /etc/pure-ftpd/pureftpd-pgsql.conf
- # PureDB /etc/pure-ftpd/pureftpd.pdb
- # ExtAuth /var/run/ftpd.sock
- PAMAuthentication yes
- # UnixAuthentication yes
- LimitRecursion 7500 8
- AnonymousCanCreateDirs no
- MaxLoad 4
- # PassivePortRange 30000 50000
- # ForcePassiveIP 192.168.0.1
- # AnonymousRatio 1 10
- # UserRatio 1 10
- AntiWarez yes
- # Bind 127.0.0.1,21
- # AnonymousBandwidth 8
- # UserBandwidth 8
- Umask 133:022
- MinUID 500
- AllowUserFXP no
- AllowAnonymousFXP no
- ProhibitDotFilesWrite no
- ProhibitDotFilesRead no
- AutoRename no
- AnonymousCantUpload yes
- #TrustedIP 10.1.1.1
- #LogPID yes
- AltLog clf:/var/log/pureftpd.log
- # AltLog stats:/var/log/pureftpd.log
- # AltLog w3c:/var/log/pureftpd.log
- #NoChmod yes
- #KeepAllFiles yes
- #CreateHomeDir yes
- #Quota 1000:10
- #PIDFile /var/run/pure-ftpd.pid
- #CallUploadScript yes
- MaxDiskUsage 99
- #NoRename yes
- CustomerProof yes
- # PerUserLimits 3:20
- # NoTruncate yes
- # TLS 1
- # IPV4Only yes
- # IPV6Only yes
- UseFtpUsers no
复制代码 再贴一个用户的信息
- Login : test.com
- Password : $1$nWcg2m/0$Y.3ve3K11wHo3JnX44sLf1
- UID : 1006 (admin)
- GID : 1006 (admin)
- Directory : /home/admin/test.com/./
- Full name :
- Download bandwidth : 0 Kb (unlimited)
- Upload bandwidth : 0 Kb (unlimited)
- Max files : 0 (unlimited)
- Max size : 0 Mb (unlimited)
- Ratio : 0:0 (unlimited:unlimited)
- Allowed local IPs :
- Denied local IPs :
- Allowed client IPs :
- Denied client IPs :
- Time restrictions : 0000-2359 (enabled)
- Max sim sessions : 0 (unlimited)
复制代码 |
|