Because I don't want to use WIN any more, it is not convenient to share files with other students, so I want to create an FTP In Ubuntu. After a burst of forums and google searches, we finally found the correct method (vsftpd, Ubuntu9.04), at least to ensure that users in the surrounding LAN can access it. As for the configuration file, the content is relatively small. It's okay for me to use it anyway ~ I don't know if it will be weak. 1. Install vsftpd directly from the source. easy code: sudoapt-getinstallvsftp
Because I don't want to use WIN any more, it is not convenient to share files with other students, so I want to create an FTP In Ubuntu. After a forum and google search, we finally found the correct method (vsftpd, Ubuntu 9.04), at least to ensure that users in the surrounding LAN can access it. As for the configuration file, the content is relatively small. It's okay for me to use it anyway ~ I wonder if it will be weak.
1. Install vsftpd
Install from the source directly, easy
Code:
Sudo apt-get install vsftpd
After the installation is complete, an ftp account may be automatically generated, and a folder will be added to/home.
If the user is not generated, You can manually generate the user:
Code:
Sudo useradd-m ftp
Sudo passwd ftp
You must change the permissions after you have an ftp account.
Code:
Sudo chmod 777/home/ftp
In this directory, I create a folder to save the content to be shared.
2. Configuration File
Modify it through sudo gedit/etc/vsftpd. conf.
The configuration file is simple as follows:
Code:
# Start in standalone Mode
Listen = YES
# Four clients can be connected at the same time. Each IP Address can have up to five processes.
Max_clients = 200
Max_per_ip = 4
# Anonymous users are not allowed to access and local (system) Users are allowed to log on
Anonymous_enable = NO
Local_enable = YES
Write_enable = NO
# Use port 20 for data transmission
Connect_from_port_20 = YES
# Generate logs
Xferlog_enable = YES
# Specify logon to the directory
Local_root =/home/ftp
In this way, on the computer in the same LAN, use my IP address, use the "ftp" account and the corresponding password to log on. The password is specified in the passwd statement in step 1.
------------
By the way, restart the ftp service after changing the configuration.
Code:
Sudo/etc/init. d/vsftpd restart
In addition, the command to enable or disable the service
Code:
Sudo/etc/init. d/vsftpd start
Sudo/etc/init. d/vsftpd stop
In this way, on the computer in the same LAN, use my IP address, use the Account "ftp" and the corresponding password to log on. The password is specified in the passwd statement in step 1.
Www.linuxidc.com
This is the end. Please make a brick !!