ftp server set up in Ubuntu with upload funtion

I continue to use my Ausus x45v notebook as server and write codes on my IBM notebook. Then problems come out: how can I share the file. Easy, set up the ftp. server to share the file.

vsftpd is a easy tool to set up the ftp server in Ubuntu. It is easy to find the official documents from the help of ubuntu.com
https://help.ubuntu.com/lts/serverguide/ftp-server.html

To install the ftp server:
sudo apt-get install vsftpd

To set the ftp directory /federer for sharing:
sudo usermod -d /federer ftp

edit and set the configuration file:
sudo nano /etc/vsftpd.conf:

To make the ftp server writable:
write_enable=YES
anon_upload_enable=YES

Then restart to make the config file effective:
sudo restart vsftpd

Ftp server can be visited, But uploading function is prohibit.

Following the guide below, Adding some security users deosn’t work either.

How to setup FTP server on ubuntu 14.04 ( VSFTPD )

Problem still exists.

At last, I solve the problem by doing this:
sudo chmod a-w /federer

The reason is that, property of folder /federer is read only!
It has to be changed to writable first!

Note, the commands for adding ftp users:
sudo useradd -d /home/ftp -M ftpuser
sudo passwd ftpuser

http://www.cnblogs.com/CSGrandeur/p/3754126.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s