Compdigitec Labs

« | Home | »

Mount a FTP share in Ubuntu as a folder

By admin | December 7, 2008

There are several GUI interfaces for FTP on Linux, such as gFTP and FileZilla. But what if you need to use the powerful Linux command lines on an FTP share? This article will help you mount a FTP share as a folder so you can use your regular Linux tools (grep,nano,mv,rm,ls,etc.) on a FTP share. This can be accomplished using cURLFTPfs.

  1. If you don’t already have curlftpfs installed, install it with sudo apt-get install curlftpfs.
  2. Replacing the appropriate settings, mount the share with sudo curlftpfs -o umask=0777,uid=1000,gid=1000,allow_other ftp://username:password@your.ftpserver.here /media/ftpmountedhere. Make sure that the location to mount to is already created and readable and writable by all users.
  3. To make this permanent, add it to the end of /etc/init.d/rc.local to be able to access the share after reboot.

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Linux | 25 Comments »

25 Responses to “Mount a FTP share in Ubuntu as a folder”

  1. Arley Says:
    July 2nd, 2009 at 02:40

    This tool is great~!
    Thanks.

  2. pradeep Says:
    October 15th, 2009 at 08:15

    Really this works …….. Great one

  3. Ryan Says:
    June 15th, 2010 at 01:37

    2 years of mucking around with trying to configure Samba shares and having it break after every upgrade or configuration change, and this simple guide put all my troubles to rest. I don’t foresee myself ever using Samba again.

  4. Emil Says:
    October 1st, 2010 at 15:05

    Same as Ryan. Goodbye SAMBA.

  5. ssslav Says:
    November 3rd, 2010 at 03:48

    Yep, this is good.. but there is a bug (4 years!!!)
    1) mount ftp syte
    curlftpfs -o umask=0077 ftp://USER1:PASSWD1@HOST1 /mnt/ftp1
    2) trying to upload large backups (1.5GB)
    cp /path/file1 /mnt/ftp1/
    coping 202.5MB and stops:
    cp: closing `/mnt/ftp1/file1′: Input/output error

    And used option ‘direct_io’ – the same trouble
    I use this on my ubuntu 10.04 64bit server:
    curlftpfs -V
    curlftpfs 0.9.2 libcurl/7.19.7 fuse/2.7

  6. ssslav Says:
    November 3rd, 2010 at 03:52

    P/S: regular ftp command works perfect.. until channel exist (over VPN), but after ‘broking pipe’ and reconnecting this stops..

  7. Backup your website using curlftpfs and rsync @ Freeminded.org Says:
    March 28th, 2011 at 07:18

    […] FTP on Ubuntu using CurlFtpFs. Mounting FTP as a folder. Tags: Backup, Code, Linux, Networking, Scripting Category: Config files, Howto You can follow […]

  8. relx Says:
    March 30th, 2022 at 18:45

    … [Trackback]

    […] There you will find 72768 more Info to that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  9. สล็อตวอเลท ไม่มีขั้นต่ำ Says:
    April 2nd, 2022 at 18:29

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  10. Bancheca Incontri Salern Says:
    April 14th, 2022 at 08:52

    … [Trackback]

    […] Info to that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  11. s333 thunderstruck Says:
    May 4th, 2022 at 00:00

    … [Trackback]

    […] Find More on on that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  12. DevOps development services Says:
    May 16th, 2022 at 22:11

    … [Trackback]

    […] Information on that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  13. Inverness escorts Says:
    June 2nd, 2022 at 20:38

    … [Trackback]

    […] Find More on that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  14. sbo Says:
    June 17th, 2022 at 04:04

    … [Trackback]

    […] Here you will find 13845 more Information to that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  15. HOTTE TV Says:
    June 27th, 2022 at 17:41

    … [Trackback]

    […] Read More Info here to that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  16. nova88 Says:
    July 16th, 2022 at 12:20

    … [Trackback]

    […] Find More Information here on that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  17. spellcasting.biz Powerful Blessings & Prayers Says:
    August 21st, 2022 at 10:31

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  18. youtube music Says:
    August 31st, 2022 at 03:55

    … [Trackback]

    […] Read More here on that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  19. Buy magic mushrooms online Melbourne Says:
    August 31st, 2022 at 12:25

    … [Trackback]

    […] Read More to that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  20. Mexican Magic Mushrooms, Says:
    October 11th, 2022 at 17:28

    … [Trackback]

    […] Read More here to that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  21. สินเชื่อโฉนดที่ดิน Says:
    October 18th, 2022 at 03:38

    … [Trackback]

    […] Find More on on that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  22. Hunt: Showdown hacks Says:
    October 22nd, 2022 at 01:16

    … [Trackback]

    […] Info to that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

  23. lucy chapman Says:
    October 28th, 2022 at 05:33

    It’s appropriate time to make some plans for the future and it’s time to be happy. I have read this post and if I could I wish to suggest you some interesting things or advice. Perhaps you could write next articles referring to this article. I want to read more things about it! Also check this out a dangerous business travel blog

  24. lucy chapman Says:
    October 31st, 2022 at 06:50

    It’s appropriate time to make some plans for the future and it’s time to be happy. I have read this post and if I could I wish to suggest you some interesting things or advice. Perhaps you could write next articles referring to this article. I want to read more things about it! Also check this out what kind of dog is on fbi international

  25. atn scopes for sale Says:
    November 18th, 2022 at 18:21

    … [Trackback]

    […] Read More here to that Topic: compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/ […]

Comments