- 论坛徽章:
- 0
|
[求助]pureftpd只可匿名进入,其它用户没有办法进入?
pureftpd只可匿名进入,其它用户没有办法进入?
用pureftpdadmin汉化版,及pw useradd建立的用户都无办法登陆。
web# ftp 192.168.0.18
Connected to 192.168.0.18.
220---------- Welcome to Pure-FTPd ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 23:15. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (192.168.0.18:evan): evan
331 User evan OK. Password required
Password:
530 Login authentication failed
ftp: Login failed.
ftp>
用pureftpdadmin建立的用户,phpmyadmin连入MYSQL可以睇到密码,如何修改pureftpdadmin成为MD5模式?
http://ip/pureftpdadmin 可以直接睇得到用户。(按照参考的要输入密码,唔知边度出错)。
pureftpd-mysql.conf
# If you want to use the Socket connect methode comment out the
# Lines with MMYSQLServer and MYSQLPort.
# If you want to use the Port methode comment out the MYSQLSocket line
MYSQLSocket /tmp/mysql.sock
MYSQLServer localhost
MYSQLPort 3306
MYSQLUser ftp
MYSQLPassword 123456
MYSQLDatabase ftpusers
MYSQLCrypt md5 #呢度改过any,crypt都一样
MYSQLGetPW SELECT Password FROM users WHERE User="\L" AND status="1" AND (i
paccess = "*" OR ipaccess LIKE "\R")
MYSQLGetUID SELECT Uid FROM users WHERE User="\L" AND status="1" AND (ipacce
ss = "*" OR ipaccess LIKE "\R")
MYSQLGetGID SELECT Gid FROM users WHERE User="\L"AND status="1" AND (ipacces
s = "*" OR ipaccess LIKE "\R")
MYSQLGetDir SELECT Dir FROM users WHERE User="\L"AND status="1" AND (ipacces
s = "*" OR ipaccess LIKE "\R")
MySQLGetBandwidthUL SELECT ULBandwidth FROM users WHERE User="\L"AND status="1"
AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetBandwidthDL SELECT DLBandwidth FROM users WHERE User="\L"AND status="1"
AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetQTASZ SELECT QuotaSize FROM users WHERE User="\L"AND status="1" AND (i
paccess = "*" OR ipaccess LIKE "\R")
MySQLGetQTAFS SELECT QuotaFiles FROM users WHERE User="\L"AND status="1" AND (
pureftpd.config.php
<?php^M
######################^M
####### SETUP ########^M
######################^M
^M
// Your exactly located mysql config file for pureftpd^M
$PUREFTP_CONFIG_FILE = '/usr/local/etc/pureftpd-mysql.conf';^M
^M
// The location where all the Forms directed to. (Mayby no change needed
)^M
$SELF_URL = 'index.php';^M
^M
// The location of your pure-ftpdwho binary (set this to chmod 4711)^M
$FTP_WHO = "/usr/local/pureftpd/sbin/pure
-ftpwho";^M
^M
#######################^M
# DEFAULT NEW-USER PARAMS # ^M
#######################^M
^M
$LANG = $ZH_CN;
$DefaultUser = ""; # Default User Logon^M
$DefaultPass = ""; # Default User Password^M
$LocationImages = "images"; #// Location of images
$DBHost = "localhost"; #// Ip-adres of MySQL server
#// (Dont change this if you are using the default database)
$DBLogin = "ftp"; #// Username of MySQL user
$DBPassWord = "123456"; #// Password of MySQL user
$DBDatabase = "ftpusers"; #// Name of database
$DefaultUid = "2000"; # Default User ID ( must be a re
al user acct )^M
$DefaultGid = "2000"; # Default Group ID ( must be a real group acct
)^M
$DefaultDir = "/home"; # Default User Dir (
use /./ at the end to chroot )^M
$DefaultUL = "0"; # Default Upload Thr
ottle ( 0 disables it )^M
$DefaultDL = "0"; # Default Download T
hrottle ( 0 disables it )^M
$Defaultip = "*"; # Default IP restric
tions ( * = any IP )^M
$DefaultQS = "0"; # Default Quota Size ( 0 d
isables it )^M
$Defaultcmt = ""; # Default Comment fo
r user^M
^M
// UA^M
$DefaultQF = "0"; # Default Quota Files ( 0 disabl
es it )^M
$PWC = "55"; # Vorsatz fuerr Crypt Password
^M
?>^M
主要参考此文:
http://blog.csdn.net/yhj1065/archive/2004/12/23/226294.aspx
系统及pureftpd都重装了几次,系网上搜过解决了apache,php安装的问题,现在pureftpd实在搞无清,无办法解决,请各位高手指点一二,不胜感激。谢谢。。。
[ 本帖最后由 evanulff 于 2009-3-16 12:49 编辑 ] |
|