Article Title: UbuntuLinux system FTP server creation steps. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
After implementing the virtual host setting for Multiple Apache users, these users generally choose to use ftp to upload their web content, which requires us to set up FTP services for them.
The FTP server that comes with Ubuntu is vsftpd.
1. Install vsftpd
It is not difficult to install software in Ubuntu. Enter:
Sudo apt-get install vsftpd
If the source is not changed, you may be prompted to use the disc. Just press Enter.
I use the CN99 source. The speed is KB per second. It is fast enough.
After installation, an ftp directory is created under/home. At this time, you can try to access the ftp: // ip address. You can see an ftp space with blank content.
By default, anonymous users can download files, but cannot write or upload files.
2. Set the vsftpd. conf file
Now, we need to make anonymous users inaccessible and enter the user password on linux before they can access the contents in their own directories.
First, find the file for setting vsftpd, which is located in/etc/vsftpd. conf.
Back up this file before modification:
Sudo cp/etc/vsftpd. conf/etc/vsftpd. conf. old
Then you can change the settings:
# Do not allow anonymous users to use
# Anonymous_enable = YES
# Available local users
Local_enable = YES
# Available write operations
Write_enable = YES
# File information in a directory is not required
# Dirmessage_enable = YES
# Add a banner prompt
Ftpd_banner = Hello ~~
# Maximum number of users on the FTP server
Max_clients = 100
# Restrict processes of each IP Address
Max_per_ip = 5
# Maximum transmission rate (B/s)
Local_max_rate = 256000
# Hiding accounts
Hide_ids = YES
Okay. Restart the ftp server to check the effect.
[1] [2] Next page