免费注册 查看新帖 |

Chinaunix

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

如何在bsd 6.1 下 将ftp用户锁定在home目录 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-04 14:37 |只看该作者 |倒序浏览
新装了一台bsd 6.1发现普通用户ftp可以转到根目录。
    我找了好多资料,都没找到原因。只好来求救。
1、我用的是bsd6.1自带的ftp服务器。
2、我没找到配置文件在哪儿。
3、我现在只知道改chroot_list这个参数,可能会起作用。
有达人知道请指点一二。

论坛徽章:
0
2 [报告]
发表于 2006-09-04 14:43 |只看该作者
man ftpd

论坛徽章:
0
3 [报告]
发表于 2006-09-04 15:11 |只看该作者
原帖由 shibin 于 2006-9-4 14:37 发表
1、我用的是bsd6.1自带的ftp服务器。

lz已经说明了

论坛徽章:
0
4 [报告]
发表于 2006-09-04 15:14 |只看该作者
give you more info



  1. FILES
  2.      /etc/ftpusers      List of unwelcome/restricted users.
  3.      /etc/ftpchroot     List of normal users who should be chroot'd.
  4.      /etc/ftphosts      Virtual hosting configuration file.
  5.      /etc/ftpwelcome    Welcome notice.
  6.      /etc/ftpmotd       Welcome notice after login.
  7.      /var/run/ftpd.pid  Default pid file for daemon mode.
  8.      /var/run/nologin   Displayed and access refused.
  9.      /var/log/ftpd      Log file for anonymous transfers.
  10.      /var/log/xferlog   Default place for session logs.

  11. SEE ALSO
  12.      ftp(1), key(1), umask(2), getusershell(3), ftpchroot(5), login.conf(5),
  13.      inetd(8), syslogd(8)

  14. HISTORY
  15.      The ftpd utility appeared in 4.2BSD.  IPv6 support was added in WIDE
  16.      Hydrangea IPv6 stack kit.

  17. BUGS
  18.      The server must run as the super-user to create sockets with privileged
  19.      port numbers.  It maintains an effective user id of the logged in user,
  20.      reverting to the super-user only when binding addresses to sockets.  The
  21.      possible security holes have been extensively scrutinized, but are possi-
  22.      bly incomplete.

  23. FreeBSD 6.1                    January 21, 2006                    FreeBS
复制代码

以上内容来自man ftpd

论坛徽章:
0
5 [报告]
发表于 2006-09-04 15:42 |只看该作者
/etc/ftpchroot     List of normal users who should be chroot'd.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP