I have backup storage on FTP server. I want to mount FTP server (may be with a help of curlftpfs) ands not only read/write, but also execute shell commands there, too. Is it possible?


There's nothing that will mount and let you execute remote shell commands.

But the mounting it simple enough:

sudo apt-get install curlftpfs
curlftpfs ftp://username:password@server /target/

You can then run local shell commands by cding into /target/ (obviously change that in both cases to somewhere you'd actually like to mount it) and then run whatever you want.

If you need to run remote FTP commands, you're best off with a proper FTP client like Filezilla.

  • +1 but I'm curious why you have to first cd /target/ in order to run ls / why couldn't you simply type ls /target/ and forgo cd /target/? I'm looking for an easy way to mount phone and stat about 3600 files (in many subdirectories under /music directory) to get last access date. This new project is what led me to your answer. I posted a question about this here: askubuntu.com/questions/1178818/… – WinEunuuchs2Unix Oct 6 '19 at 1:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.