| VB 源码 | VC 源码 | ASP源码 | JSP源码 | PHP源码 | CGI源码 | FLASH源码 | 素材模板 | C 源程序 | 站长工具 | 站长教程 |

网站运营

网站运营
网络应用
服务器
搜索优化

本类阅读TOP10

·我是做地方门户网站的,都做了近4年了,谈点经验
·怎么样才能够做好一个网站
·在linux上使用BIND建立DNS服务器
·网站推广案例精选
·站长必看:google引擎研究
·ftp简易用法
·Servlet/JSP配置详解(基础篇)
·如何提高网站的Google页面等级(PR值)
·配置Win+Apache+PHP+MySQL+Tcomcat
·中国个人网站必将来一次大浪淘沙!

站内搜索

PROFTPD的Chroot限制

PROFTPD.CONF如何改?我要限制不同FTP USER在他自己目录读写,其他目录不可读写.请帮一把巴!!请看一下这个配置文件错在那里:(FTP USER AND FTP GROUP有了,控制目录是 /APP/FTPDIR 允许目录是 /APP/FTPDIR/PEARL )
#
# Virtual Hosting Server Configuration
# for Frontier Internet Services Limited
# (http://www.000.com/)
#
ServerName "Master Webserver"
#
# Spawn from inetd?
#
#ServerType inetd
#
# or maybe a standalone server...
#
ServerType standalone
#
# don't give the server banner until _after_ authentication
#
DeferWelcome off
#
# Some basic defaults
#
Port 21
Umask 002
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
TimeoutStalled 3600
#
# No, I don't think we'll run as root!
#
User ftp
Group ftp

# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
RequireValidShell no


#
# This is a non-customer usable name, (ie they should be connecting via www.{domain})
# not 'hostname'. Therefore let's dump them in a dummy account and wait for them to
# scream.
#
DefaultRoot /app/ftpdir/
#
# Performance, let's do DNS resolution when we process the logs...
#
UseReverseDNS off
#
# Where do we put the pid files?
#
#ScoreboardPath /var/run/proftpd
#
# Logging options
#
#TransferLog /var/spool/syslog/proftpd/xferlog.legacy
#
# Some logging formats
#
#LogFormat default "%h %l %u %t "%r" %s %b"
#LogFormat auth "%v [%P] %h %t "%r" %s"
#LogFormat write "%h %l %u %t "%r" %s %b"
#
# Global settings
#

DisplayLogin welcome.msg
DisplayFirstChdir readme
#
# having to delete before uploading is a pain ;)
#
AllowOverwrite yes
#
# Turn off Ident lookups
#
IdentLookups off
#
# Logging
#
# file/dir access
#
# ExtendedLog /var/spool/syslog/proftpd/access.log WRITE,READ write
#
#
# Record all logins
#
# ExtendedLog /var/spool/syslog/proftpd/auth.log AUTH auth
#
# Paranoia logging level....
#
##ExtendedLog /var/spool/syslog/proftpd/paranoid.log ALL default


#
# Deny writing to the base server...
#

DenyAll

 

# --------------------------------------------
# Virtual Servers start here....
#
# (Note: this is normally auto generated by a
# script written in house).
# --------------------------------------------
#
# ewftp.ewserver.com.
# This is the default server
# Gets all the connections for www.{customer.domain},
#

ServerAdmin [email protected]
ServerName "ewMaster FTPserver"
MaxLoginAttempts 2
RequireValidShell no
# TransferLog /var/spool/syslog/proftpd/xferlog.www
MaxClients 50
DefaultServer on
#DefaultRoot ~ !staff
DefaultRoot /app/ftpdir
AllowOverwrite yes

#
# No quickly do we kick someone out
#
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900


DenyAll

 

User ftp
Group ftp
UserAlias anonymous ftp

AllowAll

 

DenyAll

# --------------------------------------------

# --------------------------------------------

#
# Block them from doing anything other than reading...
#
#

AllowAll

 

 

 

FLOATBOAT TOLD ME THIS BELOW,BUT DIDN'T WORK:
修改proftpd.conf,添加DefaultRoot ~ groupname
其中groupname为用户组的名,如添加一个新的用户username,和一个新的组groupname,要将username限制在其主目录内只需要添加上面所说的那条语句到proftpd.conf中即可。切记修改完之后要重新启动proftpd





相关文章
  • 自动上传Auto-FTP&Mirror的介绍与使用
  • 在Linux下建立强大的FTP搜索引擎
  • 用wu-ftpd架设FTP服务器
  • 文件传主输协议FTP命令不完全手册
  • 随心所欲下载—构造你自己的Linux网络蚂蚁
  • 如何用FTP自动传送文件
  • 如何设置虚拟匿名FTP主机
  • 如何配置FTP服务器
  • 让Proftpd 的数据库模块支持MD5验证
  • WU-FTPD 安装手册
  • ProFTPD和WU-FTP的BANDWIDTH控制
  • PROFTPD服务器设置
  • proftpd 安装手记
  • proftp+mysql认证实现
  • proftp 安装设定文档
  • Professional FTP Daemon FAQ
  • Linux架设FTP服务器之3
  • Linux架设FTP服务器之2
  • Linux架设FTP服务器之1
  • FTP使用精萃--FTP的内部命令
  • 相关软件

  • 模拟FTP服务器脚本工具  

  • 下载首页关于我们广告服务联系方式常见问题隐私声明法律条款本站声明下载帮助发布软件站点地图谷歌卫星地图