Shaare your links...
410 links
peacecoLiens Home Login RSS Feed ATOM Feed Tag cloud Picture wall Daily
Voir tous les commentaires(24)
Links per page: 20 50 100
page 1 / 1
1 results for tags curlftpfs x
  • Mount remote ftp directory host locally into linux filesystem
    1. Installation

    First install curlftpfs package. On Debian or Ubuntu it would simple as:

    apt-get install curlftpfs

    2. Mount ftp directory

    What needs to be done next is to create a mount point:

    # mkdir /mnt/my_ftp

    next use curlftpfs to mount your remote ftp site. Suppose my access credentials are as follows:

       username: ftp-user
       password: ftp-pass
       host/IP: my-ftp-location.local

    the actual curlftpfs mount command would be:

    # curlftpfs ftp-user:
    ftp-pass@my-ftp-location.local /mnt/my_ftp/

    Caution:

    ftp uses unencrypted passwords so anyone can intercept your password without much effort. Therefore use curlftpfs in combination with SSL certificates if your are not mounting some local LAN ftp server.

    On Debian you can mount ftp using curlftpfs as a root and this allows only root user to access ftp mount. No other users are allowed since by default only users that mounts has and access to mount directory. When mounting ftp as a non-root user you may get a following error message:

    fuse: failed to open /dev/fuse: Permission denied

    Rather that changing permissions of /dev/fuse you can allow other users to access ftp mount directory with an curlftpfs's option allow_other. The command will look similar to the one below:

    # curlftpfs -o allow_other ftp-user:
    ftp-pass@my-ftp-location.local /mnt/my_ftp/

    3. Mount ftp with curlftpfs using /etc/fstab

    Since we do not want put any passwords to /etc/fstab file we will first create a /root/.netrc file with a ftp username and password using this format:

    machine my-ftp-location.local
    login ftp-user
    password ftp-pass

    Now change permissions of this file to 600:

    # chmod 600 /root/.netrc

    Check uid and gid of your non-root user. This user will have a access to ftp mount directory:

    $ id

    In the next step add a following line to your /etc/fstab file ( change credentials for your ftp user ):

    curlftpfs#my-ftp-location.local /mnt/my_ftp fuse allow_other,uid=1000,gid=1000,umask=0022 0 0

    Now mount ftp with:

    mount -a
    Thu 19 Sep 2013 09:19:29 PM UTC - permalink -
    - http://linuxconfig.org/mount-remote-ftp-directory-host-locally-into-linux-filesystem
    curlftpfs ftp

    Commentaires(0)













Links per page: 20 50 100
page 1 / 1
Shaarli 0.0.40 beta - The personal, minimalist, super-fast, no-database delicious clone. By sebsauvage.net. Theme by idleman.fr.