-   Linux - Networking (
-   -   Curlftpfs mounts FTP read-only (

MichalKvacek 12-29-2009 07:23 PM

Curlftpfs mounts FTP read-only
I don't use Nautilus and its utility "Connect server", but I want to access FTP. Why not Nautilus and gvfs? I don't want have a lot of mess because of this simple purpose. After quite lot perused text and how-to I have chosen curlftpfs. Everything is fine, I can access files, touch them, delete them, but that's all. In additional, these actions work properly only in command line - when I try to use file manager (xfe), I get error message. I can't edit anything, copy or move files doesn't work also.

Connection from command line:
[michal@arch-linux ~]$ curlftpfs -o allow_other ftp://(ftp login):(password)@(ftp server) /mnt/ftp

I also added line into /etc/fstab
curlftpfs#(ftp login):(password)@(ftp server) /mnt/ftp fuse allow_other,rw,user,noauto 0 0

The result is still same - access without editing, copying etc.

Where is the problem? Am I doing something badly? Or the server is configured to reject curlftpfs requests (I don't know, if I have expressed well)? Or is there any other possibility to mount FTP as local file system (except gvfs and curlftpfs)? Thank you for any kind of help.

sonichedgehog 01-01-2010 07:51 PM

I have waited before replying as don't know anything about curlftp, which I believe you are using to access a file system across the web. For this, I have previously used ftp, this is ideal for moving files in and out of remote servers. However I do mount file systems over my network. I use mainly ubuntu or debian, however the samba utility is afaik available to other distros.
Install samba and smbfs, share the folder on the remote host to which you need access from the smb.conf file on that host (let's say "public"), make a directory to which you can "map" the remote directory, let's call that "remotefiles" then add to fstab something like

//OTHERHOSTNAME/public  cifs  PATH.ON.YOUR.HOST/remotefiles  users,noauto
You will then mount it thus:

mount PATH.ON.YOUR.HOST/remotefiles
This needs root privileges on my system.

If the remote host is always on, you won't need noauto, users.

I have never tried to substitute an ip address outside my own network, but this may be worth researching further.

I know this is not an elegant solution, but I use it to get round the situation you are describing; I can see the shares on (windows) remote hosts but can never write to them unless I mount them as described above. I hope this helps you.

MichalKvacek 01-02-2010 06:18 PM

I agree this is not an elegant solution :)). The remote server is not mine - it is webhosting and I have no ssh access or anything like that - only ftp. But it doesn't matter, I have found another solution.
I needed mount ftp as local file-system only for developing. So I have installed xampp (preconfigured apache+mysql+php+some other features) and it seems it's running fine :).

However thank you for your reply, best regards, Michal Kváček

All times are GMT -5. The time now is 08:56 AM.