Install vsftpd
sudo apt-get install vsftpd
Once this is installed you will need to edit the configuration file here
/etc/vsftpd.conf
sudo gedit /etc/vsftpd.conf
"you can use nano, vi, or any other editor you may have as well"
For security you will need to change these settings
anonymous_enable=YES
"This allows Anonymous login's change this to No to force a sign in"
anonymous_enable=NO
Uncomment the following line to allow local users to sign in to your ftp
#local_enable=YES (Delete # in front of the line to uncomment)
"local_enable lets local users account to log in so if you have a username john the you would use john with his password to log into your ftp server"
Then you will have to uncomment the following lines to allow uploading
#write_enable=YES
By default a user is allowed to download files but they are not allowed to upload them.
To enable anonymous uploads then you need to uncomment this line as well.
#anon_upload_enable=YES
Once you have finished with your config file you should save the settings
Nano will be ctrl + x
y
enter
gedit will be
save and exit.
To make your configuration go into effect you need to restart the vsftpd server service by running this
sudo /etc/init.d/vsftpd restart (you can also use stop, and start to get the same effect)
No comments:
Post a Comment