holyzhou 发表于 2011-8-10 18:35:00

遇到个很郁闷的问题(关于pureftpd)

在”域名/ftp/“WEB页面中设置的几个帐号      
用filezilla链接时,都显示严重错误530.我表示很纳闷?结果我尝试用“root”帐号登录,唉,一帆风顺,但默认目录却并不是我在”域名/ftp/“WEB页面设置的。
pureftpd-mysql.conf 如下


root@peer1:~# cat/root/pure-ftpd-1.0.30/pureftpd-mysql.conf
############################################################################
#                                                                        #
# PureFTPd MySQL configuration file.                                       #
# Generated by the installation wizard for the 'User manager for PureFTPd' #
# See http://machiel.generaal.net for more info                            #
# or read the README.MySQL for explanations of the syntax.               #
#                                                                        #
############################################################################


# Optional : MySQL server name or IP. Don't define this for unix sockets.


MYSQLServer   localhost


# Optional : MySQL port. Don't define this if a local unix socket is used.


# MYSQLPort       3306




# Optional : define the location of mysql.sock if the server runs on this host.


MYSQLSocket   /tmp/mysql.sock




# Mandatory : user to bind the server as.


MYSQLUser      root




# Mandatory : user password. You must have a password.


MYSQLPassword   669117606




# Mandatory : database to open.


MYSQLDatabaseftpusers




# Mandatory : how passwords are stored
# Valid values are : "cleartext", "crypt", "md5" and "password"
# ("password" = MySQL password() function)
# You can also use "any" to try "crypt", "md5" *and* "password"


MYSQLCrypt      md5









config.php 如下




root@peer1:~# cat /home/wwwroot/ftp/config.php
<?php
/* 'User manager for PureFTPd' is made by M.Mastenbroek 2002 - 2005
   *For more info look at http://machiel.generaal.net
   *Version 2.1
   */

$LANG = "Chinese";                  // See the directory language for the available languages.

$LocationImages ="images";      // Location of images

$DBHost = "localhost";            // Ip-address of MySQL server
                                    // (Don�t change this if you are using the default database)

$DBLogin = "root";                   // Username of MySQL user

$DBPassword = "669117606";          // Password of MySQL user

$DBDatabase = "ftpusers";         // Name of database

$FTPAddress = "69.172.213.166";   // Domain name or ip-address of your ftp server

$DEFUserID = "65534"; // nobody   // Default user id of virtual ftp user.

$DEFGroupID = "31";   // guest      // Default group is of virtual ftp user.

$UsersFile = "/etc/passwd";      // The unix user file

$GroupFile = "/etc/group";         // The unix group file

$StyleSheet = "style/default.css.php"; // The location of the style sheet

$EnableQuota = 0;                  // Enable virtual quota's (0=Off 1=On)

$EnableRatio = 0;                  // Enable ratio (0=Off 1=On)

页: [1]
查看完整版本: 遇到个很郁闷的问题(关于pureftpd)