From ArchWiki
Revision as of 11:52, 10 November 2013 by Flu (talk | contribs) (Style fixes.)
Jump to: navigation, search

zh-CN:Mount FTP

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:CurlFtpFS#)

There are several packages available from the community repository or AUR that allow to mount FTP shares and interact with them just as if they were local file systems. It's advisable to use a ssl encrypted ftp connection at least for the control channel.


These are the packages that provide a way to mount FTP shares:

All three packages are based on FUSE library.

Using curlftpfs to mount a FTP folder

Install curlftpfs from the official repositories

If needed, make sure that fuse has been started.

# modprobe fuse

Mount as root

Create the mount point and then mount the FTP folder.

# mkdir /mnt/ftp
# curlftpfs /mnt/ftp/ -o user=username:password

If you want to give other (regular) users access right, use the allow_other option:

# curlftpfs /mnt/ftp/ -o user=username:password,allow_other

Do not add space after the comma or the allow_other argument won't be recognized.

To use FTP in active mode add the option 'ftp_port=-':

# curlftpfs /mnt/ftp/ -o user=username:password,allow_other,ftp_port=-

You can add this line to /etc/fstab to mount automatically. /mnt/mydomainorg fuse auto,user,uid=1000,allow_other,_netdev 0 0

To prevent the password to be shown in the process list, create a .netrc file in the home directory of the user running curlftpfs and chmod 600 with the following content:

login username
password mypassword

Mount as normal user

You can also mount as normal user (always use the .netrc file for the credentials and ssl encryption!):

$ mkdir ~/my-server
$ curlftpfs -o ssl,utf8 ftp://my-server.tld/ ~/my-server

if the answer is

Error connecting to ftp: QUOT command failed with 500

then the server does not support the utf8 option. Leave it out and all will be fine.