- 论坛徽章:
- 0
|
本帖最后由 lvtao_cn 于 2011-01-23 14:51 编辑
开启vsftpd 服务器后
如果用FTP客户端(cuteftp) 的匿名登录后, 发现 "/" 根目录是 /var/ftp/ 并且只能看到/var/ftp 以下的目录及文件,其它的文件都看不到。
现在我自建一个ftp 用户
useradd -g ftp -s /sbin/nologin -d /app/tony tony
注:建用户tony , 目录为/app/tony ,不允许 登录 linux
passwd tony ...并设置了密码!
现在呢,用 FTP客户端(cuteftp) 的匿名登录后, 发现 登录后的目录是 /app/tony ,
但是 可以看到/etc,/dev/....等等服务器上所有的文件
请问有无办法,让tony 用户只能看到/app/tony 下所以的文件,其它任何文件都不能列出来,即像匿名登录一样??
cat vsftd.conf
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
dirmessage_enable=YES
xferlog_std_format=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES |
|