- 论坛徽章:
- 84
|
根据 wolfg 版主的 "关于vsftpd同时使用系统用户和虚拟用户验证" 帖子,添加了虚拟用户后.
(freeBSD 6.0 vsftpd 2.0.4)
出现两个问题:
1) 用虚拟用户登录总是失败:
eps# ftp 10.4.0.140
Connected to 10.4.0.140.
220 Welcome to blah FTP service.
Name (10.4.0.140:fcd): dingyi
331 Please specify the password.
Password:
530 Login incorrect.
ftp: Login failed.
ftp> by
2) 本地用户可以登录,但是登录后, 不能 ls 了,提示信息如下:
eps# ftp 10.4.0.140
Connected to 10.4.0.140.
220 Welcome to blah FTP service.
Name (10.4.0.140:fcd): fcd
331 Please specify the password.
Password:
230 Login successful.
ftp> ls
550 Permission denied.
227 Entering Passive Mode (10,4,0,140,71,91)
150 Here comes the directory listing.
226 Directory send OK.
ftp> pwd
Remote directory: /
ftp> ls
227 Entering Passive Mode (10,4,0,140,52,178)
150 Here comes the directory listing.
226 Directory send OK.
--------------------------------------------------------------------
然后我把/etc/vsftpd.conf 中的这几行注释掉:
# config about virtual user
#guest_enable=YES
#guest_username=vsftpd_virtual
##virtual_use_local_privs=YES
#virtual_use_local_privs=NO
重起服务就好用了:
eps# ftp 10.4.0.140
Connected to 10.4.0.140.
220 Welcome to blah FTP service.
Name (10.4.0.140:fcd): fcd
331 Please specify the password.
Password:
230 Login successful.
ftp> ls
550 Permission denied.
227 Entering Passive Mode (10,4,0,140,152,51)
150 Here comes the directory listing.
-rw-r--r-- 1 1001 1001 72 Mar 14 09:30 10.4.0.140.url
-rwxr-xr-x 1 1001 1001 508754 Feb 21 03:48 cvs-1.11.21-BSD.bin.gz
drwxr-xr-x 4 1001 1001 512 Feb 27 08:34 doc
-rwxrwxrwx 1 0 0 20265832 Mar 08 08:06 test.tar
drwxr-xr-x 8 500 500 3072 Mar 14 08:35 vsftpd-2.0.4
-rw-r--r-- 1 1001 1001 154857 Feb 21 06:03 vsftpd-2.0.4.tar.gz
drwxr-xr-x 8 500 500 1024 Feb 23 08:22 wget-1.10.2
-rw-r--r-- 1 1001 1001 1213056 Feb 23 08:21 wget-1.10.2.tar.gz
226 Directory send OK.
ls 后都出现这几行:
550 Permission denied.
227 Entering Passive Mode (10,4,0,140,71,91)
150 Here comes the directory listing.
226 Directory send OK.
但不知道为什么: 一个可以显示目录列表,一个不能?
[ 本帖最后由 yjh777 于 2006-3-16 19:13 编辑 ] |
|