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
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:
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.
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