You are not logged in.
I need to mount an ftp account with curlftpfs, but the ftp username has @ in it, and I think it throws the fstab out of sorts as I cannot mount it.
Is there some other way to write down @ symbol that would work?
Last edited by Lockheed (2012-02-29 20:30:46)
Offline
I actually don't know, this is just a guess, but have you tried escaping it with a back slash?
Offline
Use ~/.netrc to store the username and password - then you'll just need the hostname in fstab.
That said, a username with '@' in it seems like a very bad idea imo.
Offline
Use ~/.netrc to store the username and password - then you'll just need the hostname in fstab.
But since the mount/fstab is executed with sudo, would the location of .netrc in user's home folder not interfere with it?
Offline
You don't need sudo, just use the correct fstab options.
Offline
Perhaps %40 would work? Not sure in your application.
Offline
You don't need sudo, just use the correct fstab options.
$ mount /mnt/ftp/
mount: only root can mount curlftpfs#......
Also, how should a fstab entry look after removing the login details?
Offline
I just added, and successfully tested, this fstab entry:
curlftpfs#ftp.heanet.ie /home/tomk/heanet fuse user,noauto,exec,uid=1000,gid=100,allow_other,umask=022 0 0
Note the 'user' option, check man fstab for details.
The above is a public ftp that requires no authentication - the entry for your ftp server will look similar, when the credentials are transferred to ~/.netrc.
Finally, let me point out once again that using the '@' character in a username is not a good idea.
Offline
1. I can only mount stuff through sudo
2. This is my fstab line:
curlftpfs#ftp.locktar.com /mnt/ftplocktar fuse user,rw,allow_other,uid=juha 0 0
curlftpfs#ftp.hammack.com /mnt/ftpbackup fuse user,rw,allow_other,uid=juha 0 0
All it does is mount the server as anonymous, so I can only access what everybody else can, even though my .netrc looks like that:
machine ftp.locktar.com
login hiro
password hito
machine ftp.hammack.com
login main@hakuna.com
password matata
It is either being ignored or is malformed.
At this point, I am only talking about locktar server, cause I first want to get the easier one to work.
Finally, let me point out once again that using the '@' character in a username is not a good idea.
Tell it to tmdhosting.com
Offline
Try /root/.netrc instead of your user's one.
Offline
Excellent, it its working now for both. Thanks.
Is curlftpfs/FUSE the best/fastest way to connect to FTP shares? Is it as fast as connecting to it with regular FTP clients?
Last edited by Lockheed (2012-02-29 20:32:29)
Offline