Jump to content


Photo
- - - - -

Mount Ftp As A Drive


  • Please log in to reply
4 replies to this topic

#1 badbass

badbass

    Hak5 Pirate

  • Active Members
  • PipPipPipPipPipPip
  • 294 posts

Posted 19 March 2012 - 03:16 PM

I managed to figure out how to map an Ftp site as a local drive.
Here is the short version of what I did.
Curlftpfs is what you need. I know it is available for Debian based and most other distributions. It is also available for mac but this is beyond the scope of this post.
edit fstab add curlftpfs#ftpUsername:ftpPassword@ftp://ftpUrl /localDirectory fuse rw,uid=1000,umask=0777,user,suid,allow_other,exec,auto,utf8 0 1

This is the login pass where the ftp site located local directory where you want to mount the ftp site on your computer read write userid. I am not sure what the rest means.
mount -a mounts all file systems.

Edit rc.local
So it will start on reboot.
sudo curlftpfs -o umask=0777,uid=1000,gid=1000,allow_other ftp://username:password@your.ftpserver.here /localdirectory

save mount -a

I think I could set something up with except to do it better.
Any ideas let me know. Thanks MD

#2 Sparda

Sparda

    Hak5 Junkie

  • Active Members
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 7,849 posts
  • Gender:Male

Posted 19 March 2012 - 07:51 PM

This works ok, but it's really slow, slower then using filezilla or a proper FTP client for doing FTP stuff, but if you need to treat it like a normal file system this works.

The only way to improve on this is by using a different protocol, which is always advisable as FTP is a rubbish protocol.

#3 digip

digip

    -we're all just neophytes-

  • Active Members
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 7,655 posts
  • Gender:Male
  • Location:RnVjayBPZmYh 192.168.100.1

Posted 19 March 2012 - 10:13 PM

SFTP or SCP would be more advisable than standard FTP in any case. Especially since its encrypted and your password info isn't sent in the clear.

Edited by digip, 19 March 2012 - 10:13 PM.

@xxdigipxx http://www.attack-scanner.com/ | I'm the resident dick around here, or so I am told. Don't take it personally, I just give a shit too much sometimes. respect to all, its the Internet, don't take it to heart.
"Staying quiet doesn't mean I have nothing to say, it means I don't think you're ready to hear my thoughts..."

#4 badbass

badbass

    Hak5 Pirate

  • Active Members
  • PipPipPipPipPipPip
  • 294 posts

Posted 19 March 2012 - 11:56 PM

I agree with all of you again I am in a migration process. I would still like to learn the options for fuse and what they mear

#5 badbass

badbass

    Hak5 Pirate

  • Active Members
  • PipPipPipPipPipPip
  • 294 posts

Posted 19 March 2012 - 11:59 PM

forgot if you connect via wifi it needs to be adjusted. Linux in general with a wired nic will connect before processing the local.rc or fstab file. This is why it does not mount right at boot with WIFI




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users