Chinaunix
标题:
vsftpd不能cd到其它目录
[打印本页]
作者:
chenkangle
时间:
2007-12-14 16:28
标题:
vsftpd不能cd到其它目录
情况是这样的
我用vsftpd建了个服务器,做了chroot限制,用户只能登录到自己的家目录,我在/根目录下新建一个software文件夹,用ln -s /software /home/kevin/software连接
然后使用ftp 192.168.1.5连接进去,使用
ls
ftp> ls -l
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
lrwxrwxrwx 1 0 0 4 Dec 14 08:02 software -> /software
ftp> cd software
550 Failed to change directory.
我想是我的配置错误,请问下各位知道的朋友,这种情况该怎么配置呢?
作者:
pizigou
时间:
2007-12-14 19:15
试试 改改那个连接目录权限。
作者:
剑心通明
时间:
2007-12-14 21:40
链接来的好像不行吧,不在根目录
作者:
quidway.he
时间:
2008-01-28 16:10
做了chroot,就不能切换到其他目录的,哪怕是自己的子目录.
作者:
langue
时间:
2008-01-28 16:12
用硬链接吧
软链对于做过 chroot 的无效
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2