setting up an FTP server under UbuntuI installed the server system is Ubuntu 12.04 Lts,ftp software is of course choose the famous vsftpd (very secure FTP daemon), with the system comes with the FTP fortunately Ubuntu installed VSFTPD or is very simple, a command line:
During the execution of the command, the installer creates a user group named "FTP" locally, and the FTP service starts automatically when the command finishes.
You can use the "netstat-tl" command to check whether the FTP port has been opened, or directly in the browser type "ftp://your server IP" (the newly installed VSFTPD can be anonymous without direct access to the password), if you can directly connect to the FTP server, The installation of VSFTPD is accomplished.
Opening, stopping, and restarting the VSFTPD service is also simple:
The newly installed vsftpd can be accessed anonymously by default, and if you only want to give a specific user access to a directory, you need to modify the configuration of the vsftpd.
First, create a user that is specifically intended for access, such as "test":
Set Password:
Modify the VSFTPD configuration file "vi/etc/vsftpd.conf":
To add a user who is restricted by the access directory in/etc/vsftpd.chroot_list:
echo "Test" >>/etc/vsftpd.chroot_list
Some of the problems encountered during the installation process:
"530 Login Incorrect"
Add "/sbin/nologin" to the last line of/etc/shells
"OOPS:vsftpd:refusing to run with writable root inside Chroot ()"
If Chroot is enabled, the root directory should be set to not writable
OK, after restarting vsftpd you can use the newly created account above to access:)
Setting up an FTP server under Ubuntu