网站运营
位置:首页>> 网站运营>> PROFTPD的Chroot限制

PROFTPD的Chroot限制

 来源:asp之家 发布时间:2010-01-02 19:16:00 

标签:ftp,服务器

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 admin@ewserver.com 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

0
投稿

猜你喜欢

  • 今天来介绍Godaddy怎样设置域名解析服务器。首先.登陆Account Manager.第二.在My Products 部分选择Manag
  • 由于中文点击网赚由于开站的成本比较低,开站比较容易,但是前期的投入比较大,如果没有更多的后续资金做保证、或者网站没有稳定的收入来源,网站的倒
  • 11月20日下午消息,搜狐IT今日从播放软件暴风影音内部获悉,该公司在10月份首次实现盈亏平衡,当月收入突破1000万元。内部员工透露,暴风
  • 一个朋友的IX空间马山要到期,鉴于重新购买比直接续费便宜。省钱的同时,但需要完成一件事情就是网站搬家。从即将到期的IX空间中的网站搬家至新
  • 如果您拥有移动网站并希望在上面展示 Google 广告,此指南可引导您逐步完成在移动网页上投放广告。要开始这一过程,首先请登录到 AdSen
  • 我们建立博客的初衷是记录、分享工作、生活、技术等方面知识,也有人写博客是为了装逼。但最终能够坚持下来的却少之又少。主要原因是从起初的单相思到
  • 据国外媒体报道,乔布斯曾经说过微软从苹果偷窃出Windows系统,但这些年来双方都有诸多“剽窃”对方
  • 校园网站的发展。是很多学校近年来关注的焦点,可以说是前景很多,很多学校都想建立自己学校的网站。校园网站的建设应明确以下几个问题:1、建立完善
  • 用户是否听说过虚拟专用网VPN的优越特性?是否准备好在远程访问设备上看看它的优越性了吗?那么,用户应该很高兴的是,Windows 2000提
  • 网站新开一个月,遇到很多问题,和大家谈谈,注我们用的是windows主机 100G的那种 我们网站就不贴出来了,免得说我做广告。第一个问题是
  • 网络营销和传统营销比起来,具有投资小,见效快,回报大的特点,企业在发展的过程中,可以利用互联网进行一种全新的网络营销模式,推广自己企业的产品
  • 2009中国经济在经过金融危机的洗礼后呈现出逐季企稳回升的态势,分析人士指出,中国经济有望在未来一段时期内重新恢复快节奏的增长步伐,而作为高
  • 在用户正确完成以上各步骤以后,WebMail系统就会让用户恢复自己邮箱帐户的密码。密码恢复的方式又各有不同,一般有如下几种方式,安全程度各有
  • 搜索引擎快照是指搜索引擎在抓取网站时,对网页的一种缓存处理,快照都用户是非常有利的,快照可以在网站本身页面不存在或错误时也能查看,不会影响用
  • 面对网购需求的多元化,中国的自主销售式B2C购物网站正起着微妙的变化。上周末艾瑞咨询发布的《2009年第三季度中国网络购物市场监测报告》显示
  • 做站也有一段时间了,俗话说的好,外行看我们很好赚,但实际做了才发现,真的不简单,一个字"难"。做站,每个人从做垃圾站过来
  • 这是我不小心遇到的呵!昨天在同类(免费资源)站看到我朋友载入的广告代码<DIV class=ggad><span id=&
  • 互联网相信奇迹,更奖掖勤劳——谁能想象一个未出校门的女学生,能有拥趸无数?Gia做到了。她是豆瓣网“我们爱讲冷笑话”小组的组长。小组成立两年
  • 为了更好的实现对社区热点信息的聚焦,Discuz! 7.1新增了“主题热度与主题评价”功能,成为强化社区信息聚焦重要应用手段。重视细节改进是
  • 在百度C2C产品“百度有啊”即将上线的时候,淘宝网站曾经屏蔽百度搜索爬虫,禁止百度搜索引擎抓取淘宝网站的网页内容,淘宝官方的解释是“杜绝不良
手机版 网站运营 asp之家 www.aspxhome.com