Difference between revisions of "CurlFtpFS"

From ArchWiki
Jump to: navigation, search
(Hide the password from the process list)
m (Example using curlftpfs to mount a FTP folder)
Line 34: Line 34:
 
  curlftpfs#USER:PASSWORD@ftp.domain.org /mnt/mydomainorg fuse auto,user,uid=1000,allow_other 0 0
 
  curlftpfs#USER:PASSWORD@ftp.domain.org /mnt/mydomainorg fuse auto,user,uid=1000,allow_other 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:
+
To prevent the password to be shown in the process list, create a {{ic|.netrc}} file in the home directory of the user running curlftpfs and chmod 600 with the following content:
  
 
  machine ftp.yourserver.com
 
  machine ftp.yourserver.com
 
  login username
 
  login username
 
  password mypassword
 
  password mypassword

Revision as of 14:34, 17 September 2012

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.

Packages

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

  • curlftpfs [recommended]
  • fuseftp
  • lufs [outdated]

All three packages are based on FUSE library.

Example using curlftpfs to mount a FTP folder

Install curlftpfs (from the community repo)

# pacman -S curlftpfs

If needed, make sure that fuse has been started.

# modprobe fuse

Create the mount point and then mount the FTP folder.

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

If you want regular user access, use the following instead:

# curlftpfs ftp.yourserver.com /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 ftp.yourserver.com /mnt/ftp/ -o user=username:password,allow_other,ftp_port=-

You can add this line to /etc/fstab to mount automatically.

curlftpfs#USER:PASSWORD@ftp.domain.org /mnt/mydomainorg fuse auto,user,uid=1000,allow_other 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:

machine ftp.yourserver.com
login username
password mypassword