Skip to:
Content
Pages
Categories
Search
Top
Bottom

General

Name

ZaneGibson1997

About Me

VSFTPD in a UNIX / Linux in really protected and fast FTP server, has now been adopted by several significant web-sites. VSFTPD assistance the user title and password stored in the database file or database server. VSFTPD mentioned this type of virtual end users for people. In contrast to the nearby FTP (method) consumers, the virtual FTP server consumers is only the distinctive customers, virtual FTP server users can only accessibility the assets presented by this program enormously enrich their very own stability. Comparing with the anonymous consumers, virtual consumers will need to have a username and password to accessibility the FTP server in the doc, an increase of the user and download conduite. The will need to present down load expert services, but do not hope that absolutely everyone can down load anonymous, both equally the need for consumers to get administration, using into account the host stability and easy management of the FTP website, the virtual user is an outstanding resolution. This paper describes the RedHat Linux 9 on how to VSFTPD virtual consumer identify and password stored in the MySQL database server.1, VSFTPD installationAt present, VSFTPD the latest edition is one.2 daytrading6636.com . version. Obtain the official tackle of the ftp//vsftpd.beasts.org/users/cevans/vsftpd-1.2..tar.gz. Ahead of putting in, the preparatory operate neededfollowingVSFTPD default configuration of the will need to “nobody” user. In the method to include this consumer, if a user previously exists, useradd prompted a corresponding purchase.root hpe45 root useradd no personuseradd person no one existsVSFTPD default configuration of the need to have to “/ usr / reveal / empty” directory. In the system directory, if the directory already exists, mkdir command corresponding guidelines.root hpe45 root mkdir / usr / share / empty /mkdir are not able to create directory ‘/ usr / reveal / empty’ File existsVSFTPD supply anonymous FTP providers, the will need to “ftp” customers and an powerful directory of anonymity.root hpe45 root mkdir / var / ftp /root hpe45 root useradd-d / var / ftp ftpThe up coming operation for ftp end users are currently there are practical.root hpe45 root chown root.root / var / ftproot hpe45 root chmod og-w / var / ftpFar more preparatory function is accomplished, we can begin compiling the source code. We believe that the download vsftpd-1.2..tar.gz in / daytrading6636.com root directory, the following buyroot hpe45 root tar zxvf vsftpd-one.2..tar.gzroot hpe45 root compact disk vsftpd-one.2.root hpe45 vsftpd-1.two. makeroot hpe45 vsftpd-1.two. make installHigher than the “make install” command will be compiled binary files, manuals and other copy to the appropriate directory. In RHL9, may want to manually duplicate of the followingroot hpe45 vsftpd-one.2. cp vsftpd / usr / regional / sbin / vsftpdroot hpe45 vsftpd-one.two. cp vsftpd.conf.5 / usr/local/reveal/male/man5root hpe45 vsftpd-one.2. cp vsftpd.8 / usr/neighborhood/share/man/man8Up coming, we copy a straightforward profile as a basis for amending the back again.root hpe45 vsftpd-one.2. cp vsftpd.conf / and many othersroot hpe45 vsftpd-1.2. cp RedHat / vsftpd.pam / and so forth / pam.d / ftpPAM copy the file to let regional users log VSFTPD.root hpe45 vsftpd-one.2. cp RedHat / vsftpd.pam / and so on / pam.d / ftp2nd, generate a guest userVSFTPD use PAM virtual consumer authentication strategies. As the virtual user ID / password be stored separate, so the validation, VSFTPD need to have forex for a program to go through the identification of the consumer database file or database server to total the verification, which is VSFTPD the visitor users. This is as anonymous users also want a process like ftp consumers. Of study course, we can also visitor people as a virtual consumer in the technique associates. Under in the program add vsftpdguest people, as VSFTPD the guest.root hpe45 vsftpd-one.two. useradd vsftpdguestWhen the virtual users log in, the area of the house for vsftpdguest directory / residence / vsftpdguest. If you want consumers to log in to virtual / var / ftp, and other directories, modify their vsftpdguest the directory can be.Third, set up VSFTPD profileIn / etc / vsftpd.conf document, by incorporating the following optionsvisitor_permit Surevisitor_username vsftpdguestThen the following buy, VSFTPD operate in the historyroot hpe45 vsftpd-1.2. / usr / community / sbin / vsftpd &4, users will be held in virtual MySQL database serverWe develop up a database vsftpdvu, Table people, industry title and passwd utilized to shop virtual user’s username and password, whilst automated trading two further virtual customers xiaotong and xiaowang.root hpe45 vsftpd-one.2. mysql-pmysql create database vsftpdvumysql use vsftpdvumysql generate table consumers (title char (16) binary, passwd char (16) binary)mysql insert into consumers (identify, passwd) values ( ‘xiaotong’, password ( ‘qqmywife’))mysql insert into customers (title, passwd) values ( ‘xiaowang’, password ( ‘ttmywife’))mysql stopThen, licensed vsftpdguest vsftpdvu database can be read through the customers table. The following orderroot hpe45 vsftpd-1.two. mysql-u root mysql-pmysql grant pick on vsftpdvu.users to vsftpdguest localhost revealed by ‘i52serial0’mysql give upTo confirm the achievement of the operation just can complete the following orderroot hpe45 vsftpd mysql-u vsftpdguest-pi52serial0 vsftpdvumysql pick * from end usersIf productive, will be outlined xiaotong, xiaowang and encrypted passwordfive, setting the PAM authentication MySQLRight here we need to use a mysql pam authentication for the open up source challenge (http//sourceforge.net/projects/pam-mysql/). First, from the site of its deal pam_myql-.5.tar.gz, copied to / root directory. In compiling the installation, to guarantee that the RPM mysql-devel deal has been set up on your device, if not from the forex trading RHL installation disc to install the package deal. Then, the subsequent orderroot hpe45 root tar xvzf pam_mysql-.5.tar.gzroot hpe45 root cd pam_mysqlroot hpe45 pam_mysql makeroot hpe45 pam_mysql make installmake set up this action might be incorrect, and that the directory had to manually generated pam_mysql.o copied to the / lib / security directory.Upcoming, we want to set up vsftpd PAM verify the documents. Open up / etcetera / pam.d / ftp information, by including the subsequent aspectsauth expected pam_mysql.o user vsftpdguest passwd i52serial0 host localhost db vsftpdvu table end users usercolumn name passwdcolumn passwd crypt 2account needed pam_mysql.o consumer vsftpdguest passwd i52serial0 host localhost db vsftpdvu table end users usercolumn title passwdcolumn passwd crypt 2Associated to the above parameters, as extended as the corresponding set up in front of the database can realize their meaning. It really should be famous that crypt parameters. crypt that password in the Password industry of encryption technique crypt , passwords to specific way (not encrypted) stored in the database crypt 1, the use of passwords UNIX method DES encryption encrypted stored in the database crypt 2 , Passwords following the pas MySQL

Skip to toolbar