Cannot escape character '@' in fstab file

Posted by ubuntico on Ask Ubuntu See other posts from Ask Ubuntu or by ubuntico
Published on 2011-11-17T19:32:00Z Indexed on 2011/11/19 18:15 UTC
Read the original article Hit count: 370

Filed under:
|
|
|
|

I want to attach remote FTP directory as a local directory in my system. I will use curlftpfs line in the fstab file , but to login I have to pass my user name and password. The user name has a special character (@) and it needs to be escaped via octal ascii code. The octal ascii for '@' is 100. But when I try to enter the following into the FSTAB file,

curlftpfs#myself\100myself.com:ftpPassword@ftp://ftp.mysite.com /mnt/somedir 

I get an error saying

Error connecting to ftp: Couldn't resolve host 'myself.com:ftpPassword@ftp://ftp.mysite.com'

The fstab does not recognize escaped symbol @ (\100) and thinks that the FTP site should start immediately after the @ symbol (just like I haven't escaped it).

Can someone help? Why I cannot escape @, when it can be done for space character, for example?

© Ask Ubuntu or respective owner

Related posts about 11.04

Related posts about 11.10