专业WordPress主机提供商

proftpd限制用户在自己目录

2009-03-19

我在Defaultroot /home/ 這一行即限制了所有User进入之后不能往上面跑..
Defaultroot 如果一改成 / 就会让User也跟着能往root目录了,很危险的!!

MaxClients 10
MaxClientsPerHost 1
RootLogin on
ServerIdent on
DisplayLogin             welcome.msg
DisplayFirstChdir          .message
AllowStoreRestart         on
DefaultRoot  /home/
DefaultChdir /home/ftp

作者:小张 | 分类目录:Apache & MySQL & PHP | 标签:

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>