歡迎您光臨本站 註冊首頁

vsftpt與mysql后不能登陸

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

vsftpt與mysql后不能登陸

救命啊!
本人做了一個ftp服務,想做一個全部是虛擬用戶的伺服器,伺服器的情況是:vsftpd+mysql,通過pam模塊進行認證。
設備完成後,只可以一個虛擬用戶登陸,其他新添加到數據的用戶都不能登陸。

var/log/messages日誌信息:
# tail -n 10 messages
Feb 24 19:45:10 localhost smartd: Opened configuration file /etc/smartd.conf
Feb 24 19:45:10 localhost smartd: Configuration file /etc/smartd.conf parsed.
Feb 24 19:45:10 localhost smartd: Device: /dev/sda, opened
Feb 24 19:45:10 localhost smartd: Device: /dev/sda, IE (SMART) not enabled, skip device Try 'smartctl -s on /dev/sda' to turn on SMART features
Feb 24 19:45:10 localhost smartd: Unable to register SCSI device /dev/sda at line 32 of file /etc/smartd.conf
Feb 24 19:45:10 localhost smartd: Device /dev/sda not available
Feb 24 19:45:10 localhost smartd: Monitoring 0 ATA and 0 SCSI devices
Feb 24 19:45:10 localhost smartd: smartd has fork()ed into background mode. New PID=1978.
Feb 24 19:49:19 localhost vsftpd: Tue Feb 24 11:49:19 2009 CONNECT: Client "192.168.1.103"
Feb 24 19:49:29 localhost vsftpd: Tue Feb 24 11:49:29 2009 FAIL LOGIN: Client "192.168.1.103"
我使用的是虛擬機


一下是在windows系統登陸出現的錯誤信息
C:\>ftp 192.168.1.4
Connected to 192.168.1.4.
220 "Welcome to my FTP site.."
User (192.168.1.4:(none)): test
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp>

我的mysql資料庫只有三個用戶:
mysql> select * from users;
+------+----------+
| name | password |
+------+----------+
| test | 123456   |
| ftp  | 123456   |
| qq   | book     |
+------+----------+
3 rows in set (0.00 sec)

mysql>
只有其中的ftp可以登陸,其他兩個都不可以


求大家幫幫忙啊!
《解決方案》

回復 #1 ids_company 的帖子

ftp用戶的home目錄是否設置
《解決方案》

我的QQ空間上有寫虛擬用戶的創建,兩種方法
http://user.qzone.qq.com/385343988

[火星人 ] vsftpt與mysql后不能登陸已經有321次圍觀

http://coctec.com/docs/service/show-post-24149.html