FTP Server on Linux

FTP server on ubuntu 14.04

FTP is for  File Transfer Protocol which is used  for transferring files between machine, one will be a client machine, the other will be as a server machine.

FTP used TCP network for transferring files from one system to another system.

Let Start Configuring FTP server in Ubuntu 14.04

We are using VsFTPD for ftp server.

Setup FTP server on Ubuntu 14.04

Step 1 First we need to update our package.

sudo apt-get update

Step 2 Install VsFTPD in your system.

sudo apt-get install vsftpd

Step 3 After that open /etc/vsftpd.conf config file Then make some changes in it.

Uncomment the below lines (line no:29 and 33).

write_enable=YES
local_umask=022

Uncomment the below line (line no: 120 )

chroot_local_user=YES

Allow anonymous FTP? (Disabled by default)

anonymous_enable=NO

and add the following line at the end.

allow_writeable_chroot=YES

Add the following lines to enable passive mode.

pasv_enable=Yes
pasv_min_port=40000
pasv_max_port=40100

Step 4 Restart vsftpd service .

sudo service vsftpd restart

Step 5  ftp server used port 21. Steps for creating user for accessing file server.

sudo useradd -m kencorner -s /usr/sbin/nologin
sudo passwd pwdkencorner

also check if folder is created in home directory or not , if not then create folder

sudo mkdir /home/kencorner
sudo chmod -R 777 /home/kencorner

Step 6 now make changes in nologin shell . Open /etc/shells and at the end add below line.

sudi vi /etc/shells

/usr/sbin/nologin

Now we can  connect our ftp server with the username on port 21 using winscp or filezilla client.

Also we can type ftp://ServerIpAddress

It will ask for id and password, then we can access FTP server

Transfering file to FTP server from client PC.

curl -T File_Name ftp://ServerIPaddress –user kencorner:pwdkencorner


You May Also Enjoy Reading This …

22 comments

  1. Wonderful goods from you, man. I’ve understand your stuff previous to and you’re just too excellent.

    I really like what you have acquired here, certainly like what you’re saying
    and the way in which you say it. You make it entertaining and you still
    care for to keep it wise. I can’t wait to read much more from you.
    This is really a wonderful web site.

  2. We’re a group of volunteers and starting a new scheme in our community.
    Your website offered us with valuable information to work on. You’ve done a formidable job and our entire community
    will be grateful to you.

  3. I blog frequently and I genuinely appreciate your information. The article has truly peaked my interest.
    I’m going to take a note of your blog and keep checking
    for new details about once per week. I subscribed to your RSS feed too.

  4. Have you ever considered about adding a little bit more than just your articles?
    I mean, what you say is fundamental and all. Nevertheless
    think about if you added some great pictures or video clips to give your
    posts more, “pop”! Your content is excellent but with images and video clips, this site could undeniably be one of the greatest in its niche.
    Good blog!

  5. hi!,I like your writing very a lot! share we keep
    in touch extra approximately your article on AOL? I need a
    specialist in this space to unravel my problem. Maybe that is
    you! Taking a look ahead to see you.

  6. hello there and thank you for your information – I have certainly picked up something new
    from right here. I did however expertise several technical issues
    using this site, since I experienced to reload the web site lots of times previous to
    I could get it to load correctly. I had been wondering if
    your hosting is OK? Not that I’m complaining, but sluggish loading instances times will sometimes affect your placement in google
    and could damage your quality score if advertising and marketing with Adwords.
    Well I’m adding this RSS to my email and could look out for
    much more of your respective intriguing content.

    Make sure you update this again soon.

  7. When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I
    get several e-mails with the same comment. Is there any way you can remove me from that
    service? Bless you!

  8. Good day! I know this is somewhat off topic but I was wondering which blog platform are you
    using for this website? I’m getting tired of WordPress
    because I’ve had issues with hackers and I’m looking at options for another platform.
    I would be awesome if you could point me in the direction of
    a good platform.

  9. The other day, while I was at work, my sister stole my iphone and tested
    to see if it can survive a thirty foot drop, just so she can be a youtube sensation. My apple ipad is now broken and she has 83
    views. I know this is totally off topic but I had to share it with someone!

  10. Write more, thats all I have to say. Literally, it seems as though you relied on the
    video to make your point. You definitely know
    what youre talking about, why waste your intelligence on just posting videos to your weblog when you could be giving us something enlightening to
    read?

  11. Wonderful beat ! I wish to apprentice while you amend your website, how can i subscribe for a blog website?

    The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright
    clear concept

  12. Yesterday, while I was at work, my cousin stole
    my iPad and tested to see if it can survive a twenty five foot drop, just so she can be a
    youtube sensation. My iPad is now destroyed
    and she has 83 views. I know this is completely off topic but
    I had to share it with someone!

  13. of course like your website however you need to check the spelling on quite a few of your posts.
    A number of them are rife with spelling issues and I in finding it very troublesome to tell the reality nevertheless I will certainly come again again.

  14. Wonderful beat ! I would like to apprentice while
    you amend your website, how could i subscribe for a
    weblog website? The account helped me a acceptable
    deal. I had been tiny bit familiar of this your broadcast
    provided vivid transparent concept

  15. An impressive share! I have just forwarded this onto a colleague who had been conducting a little homework on this.

    And he in fact bought me lunch due to the fact that I stumbled upon it for him…
    lol. So let me reword this…. Thanks for the meal!!
    But yeah, thanks for spending the time to discuss this issue here on your internet site.

  16. Hi, i think that i saw you visited my weblog thus i came to
    “return the favor”.I’m trying to find things to enhance my site!I suppose its ok to use some of your ideas!!

  17. Just wish to say your article is as astonishing.
    The clarity in your post is simply spectacular and i can assume you are an expert on this subject.

    Fine with your permission allow me to grab your feed to
    keep updated with forthcoming post. Thanks a million and please continue the enjoyable
    work.

Leave a Reply

Your email address will not be published. Required fields are marked *