论坛: UNIX系统 标题: pureftpd目录共享问题[已知] 复制本贴地址    
作者: TecZm [teczm]    版主   登录
现在有两个目录:
/test/ppp        和  /tools/ooo
我:
 
引用:
ln -s /tools/ooo /test/ppp/ooo

问题:cd /test/ppp/ooo 可以正常进入/tools/ooo
但是在ftp下cd ooo
显示: 无法切换到ooo,没有该目录或文件


     



[此贴被 TecZm(teczm) 在 04月16日15时04分 编辑过]


[此贴被 TecZm(teczm) 在 04月18日08时16分 编辑过]

地主 发表时间: 05-04-16 12:17

回复: TecZm [teczm]   版主   登录
知道了:
/test/ppp/ooo只是一个符号链接,ftp是无法识别的。

还是用虚拟目录吧

B1层 发表时间: 05-04-16 13:27

回复: TecZm [teczm]   版主   登录
我在/etc下
代码:
#ee pureftpd-dir-aliases



vi pureftpd-dir-aliases
引用:
#test
  /test/ppp/ooo
  /test/ooo


重启ftpd服务后依然没用

pure-ftp readme原文如下
引用:

To support that feature, the server must be compiled with --with-diraliases passed to ./configure.
To define alias/directory pairs, you must create a file called /etc/pureftpd-dir-aliases,
whoose format is:
Alternating lines of alias and dir
(this enables embeded whitespace in dir and alias without quoting rules)
Optional blank lines
Optional lines beginning with '#' as comments
(no you can't put a '#' just anywhere)
Example:
          pictures
          /usr/misc/pictures

          sources
          /usr/src

# This is for the OpenBSD port tree
          pureftpd-port
          /usr/ports/net/pure-ftpd




B2层 发表时间: 05-04-16 14:58

回复: TecZm [teczm]   版主   登录
原来这样就行了
引用:
--with-virtualchroot: usually, when an user is chrooted (-A and �Ca options), it's impossible to go out of his home directory. Enabling that feature makes it possible: symbolic links are always followed, even if they are pointing to directories not located in the user's home directory. This is very useful for having shared directories (for instance, have a symbolic link to /var/incoming in every home directory). This feature isn't enabled by default.



B3层 发表时间: 05-04-18 08:21

论坛: UNIX系统

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号