*MAFIA* Forums

*MAFIA* Forums

  • April 29, 2024, 04:13:05 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome back the Arcade! Play over 100+ games to get the high score and compete against other forum members.

http://www.mafiaowns.com/index.php?action=arcade;sa=list;sortby=a2z;

Author Topic: Setup an FTP server on linux.  (Read 1098 times)

Toblerone

  • Forum Member
  • Reputation: 694
  • Offline Offline
  • Posts: 722
    • View Profile
Setup an FTP server on linux.
« on: September 04, 2005, 12:04:54 PM »

HELLO BOYS AND GIRLS!!!

Today we will be installing vsftpd(very secure ftp daemon)!!

with apt-get, again, it is rediculously simple to install.

run the command

Code: [Select]
sudo apt-get install vsftpd

and let it do its thing. Within a matter of seconds you will have a brand new shiney ftp server installed.

For you not apt-get havers...here is instructions for manual install!




Configuring your anonymous (by default) ftp server.
Right now people can connect to your ftp server with the username "anonymous" and any password they may wish to enter. They can download anything you put in your /home/ftp file on your server...howev er they cannot upload anything...yet .

Anonymous Uploads:
I will now explain how to make a directory that anonymous users will be able to upload files to, however they will not be able to download eachothers files...and only you will be able to access those files.

First run the command:
Code: [Select]
sudo mkdir -m 2733 /home/ftp/upload
This will make an upload directory in your anonymous ftp folder.

Now you must edit your ftp configuration file...
Run this command...
Code: [Select]
sudo vi /etc/vsftpd.conf
Hit [Insert] on your keyboard and you will be able to edit the file. Scroll down to where you will see "#write_enable=YES" remove the # so the line will now look like "write_enable=YES".
Then scroll down to where you will see the line "#anon_upload_enable=YES" and remove the # so it says "anon_upload_en able=YES".

Now press [ESC] on your keyboard and type "!wq" (without the quotes.) then hit return and you will be back to your shell...Howeve r your changes wont have taken effect.

Now restart your ftp server by running the command
Code: [Select]
sudo /etc/init.d/vsftpd restart

and voila...youve got yourself an anonymous download FTP, that anyone can download files from...with a directory that anyone can upload to, but only you may see the files.
Logged
 

Page created in 0.034 seconds with 31 queries.