Configuring File Transfer Protocol

This site has been moved to “requesttutorial.com

Hello All

Today we are going to configure an FTP server (vsftpd to be more precise) on Linux (Fedora), FTP Server is used to transfer file/folders and other stuff (if you know what I mean :p) from one host to another.

Before we get started I will be assuming you have the following

– Operating System: Fedora 14

– User: root

– Browser: Firefox (I simply Love Firefox)

So lets get started

1. To Install vstfpd, run the following command

#yum install vsftpd

2. Run the following command to start the server

#service vsftpd start

3. Would you believe it or not, you are done :), copy the files you want to share between your hosts in to /var/ftp/

4. On your client system (whether Windows or Linux), open a browser (I mean Firefox x-( ) and type ftp:// followed by Server’s IP and you will be signed in anonymously e.g

ftp://192.168.0.101

And there you go all of your files that you copied to /var/ftp/

5. You can play around with its configuration like restricting users and blocking anonymous user etc, all the configuration are stored in its configuration file /etc/vsftpd/vsftpd.conf

6. If you want to block the anonymous user, open the configuration file with your favorite editor and locate the field

anonymous_enable=YES

and set it to

anonymous_enable=NO

Save the File and run the following commands to reflect the changes you made

#service vsftpd restart

7. To allow local users to login find the field

local_enable=NO

and set it to

local_enable=YES

(Though It was by default Yes :p)

And to reflect your changes

#service vsftpd restart

9. To restrict user from logging in, Open the file /etc/vsftpd/ftpusers and simply add the name of user you don’t want to allow e.g. “waqar” (without quotes)

and then run the well-known command

#service vsftpd restart

10. Just play around with the configuration file and make sure to make backup copy of it in case screw up.

Hope you like this tutorial as I made it as easy as possible.

Advertisements

3 thoughts on “Configuring File Transfer Protocol

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s