Configure virtual users in VSFTPDMySQL under Ubuntu9.04

Source: Internet
Author: User
Tutorial environment: Operating System Ubuntu9.04 custom only select developmenttools install VSFTP-2.0.4Mysql-5.0.24pam_mysql-0.7RC1 1, VSFTPD compiler installation 1, upload source package to/usr/local/Issue 3, cd/usr/local/vsftpd-2.0

Lab environment:
For Ubuntu 9.04, select only development tools for installation.
VSFTP-2.0.4 Mysql-5.0.24 pam_mysql-0.7RC1

I. VSFTPD compilation and Installation
1. Upload the source package to/usr/local/vsftpd-2.0.4.tar.tar
2. tar zxvf vsftpd-2.0.4.tar.tar
3. cd/usr/local/vsftpd-2.0.4
4. vi builddefs. h:
# Ifndef VSF_BUILDDEFS_H
# Define VSF_BUILDDEFS_H
# Define VSF_BUILD_TCPWRAPPERS
# Define VSF_BUILD_PAM (this line is the key, and others can be used by default .)
# Define VSF_BUILD_SSL
# Endif
5. make
6. ls-l vsftpd
-Rwxr-xr-x 1 root 86088 Jun 6 vsftpd // the executable program has been compiled successfully.
7. create necessary accounts and directories.
# Useradd nobody // your system may already have this account, so you do not need to create
# Mkdir/usr/share/empty // This directory may already exist in your system, so you do not need to create
# Mkdir/var/ftp // This directory may already exist in your system, so you do not need to create
# Useradd-d/var/ftp // This account may already exist in your system, so you do not need to create
# Chown root: root/var/ftp
# Chmod og-w/var/ftp
Remember, if you do not want users to log on locally, modify the/etc/passwd file and set the login SHELL to/sbin/nologin, for example, the above nobody and ftp are set to/sbin/nologin.
8. Install the vsftp configuration file, executable program, man, and so on:
# Install-m 755 vsftpd/usr/local/sbin/vsftpd
# Install-m 644 vsftpd.8/usr/share/man/man8
# Install-m 644 vsftpd. conf.5/usr/share/man/man5
# Install-m 644 vsftpd. conf/etc/vsftpd. conf
If an error occurs in this step (install: cannot create regular file '/etc/vsftpd. conf ': No such file or directory) because there is No/etc/vsftpd directory, you can create it yourself.
Mkdir/etc/vsftpd
9. Compile/etc/vsftpd. conf and add a line at the end.
Listen = YES
10. Start the FTP service
/Usr/local/sbin/vsftpd/etc/vsftpd. conf &

Now you can log on to the FTP anonymously, and the VSFTPD installation is completed.
(If/usr/local/sbin/vsftpd is directly enabled, the content of the/etc/vsftpd. conf configuration file will be called by default. Please note !)
To exit VSFTPD, you can only use the ps aux command to delete the lines related to VSFTPD in the form of a kill id.
This step is to start the vsftpd service. If you want to enable the machine to run FTP automatically when it is started, you should write this step to/etc/rc. d/rc. local.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.