LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-27-2010, 08:23 AM   #1
replica88
Member
 
Registered: Nov 2009
Posts: 48

Rep: Reputation: 15
Mounting FTP server as /backup


I want to be able to mount an ftp account to a local folder, I have set up a ftp server that is working fine, I have tested it with a few windows ftp clients and it works fine.

I am trying to use CurlFtpFS to mount it to /backup as I know it is supported but am running into an error I cant get around.

I have tested that my box can access the server using the ftp command, see below

Code:
root@Fileserver:/# ftp 192.168.1.254
Connected to 192.168.1.254.
220 (vsFTPd 2.0.6)
Name (192.168.1.254:root): ftpuser
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
ftp> exit
221 Goodbye.
but when I try to use CurlFtpFS I get a Error connecting to ftp: Access denied: 530" error, see below

Code:
root@Fileserver:/# curlftpfs ftp://192.168.1.254
Error connecting to ftp: Access denied: 530
root@Fileserver:/# curlftpfs ftpuser:ftpPa$$w0rd@192.168.1.254 /backup
Error connecting to ftp: Access denied: 530
I have looked this up but not have found anything useful, can anyone help??
 
Old 01-27-2010, 10:44 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
curlftpfs doesn't appear to be maintained for the last 2.5 years. I suggest you use sshfs instead, as you can use your standard ssh server and don't need clear text passwords.
 
Old 01-27-2010, 04:22 PM   #3
replica88
Member
 
Registered: Nov 2009
Posts: 48

Original Poster
Rep: Reputation: 15
Problem solved

CurlFtpFS does not seem to support $ in passwords, I used the -v option to debug, see below

Code:
root@Fileserver:~# curlftpfs -v ftp://ftpuser:ftpPa$$w0rd@192.168.1.254 /backup
* Couldn't find host 192.168.1.254 in the .netrc file, using defaults
* About to connect() to 192.168.1.254 port 21 (#0)
*   Trying 192.168.1.254... * connected
* Connected to 192.168.1.254 (192.168.1.254) port 21 (#0)
< 220 (vsFTPd 2.0.6)
> USER ftpuser
< 331 Please specify the password.
> PASS ftpPa4150w0rd
< 530 Login incorrect.
* Access denied: 530
* Closing connection #0
Error connecting to ftp: Access denied: 530
Notice the password I entered and the password that was sent is different. I used a simple password and it worked, see below

Code:
root@Fileserver:~# curlftpfs -v ftp://test:test@192.168.1.254 /backup
* Couldn't find host 192.168.1.254 in the .netrc file, using defaults
* About to connect() to 192.168.1.254 port 21 (#0)
*   Trying 192.168.1.254... * connected
* Connected to 192.168.1.254 (192.168.1.254) port 21 (#0)
< 220 (vsFTPd 2.0.6)
> USER test
< 331 Please specify the password.
> PASS test
< 230 Login successful.
> PWD
< 257 "/"
* Entry path is '/'
* Remembering we are in dir ""
* Connection #0 to host 192.168.1.254 left intact
 
Old 01-27-2010, 06:10 PM   #4
beadyallen
Member
 
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
Your problem was that '$$' is a bash variable which expands to the current process id (that'd be the pid of your bash shell as you ran it, which looks to have been 4150) You could try enclosing the username/password in single quotes to prevent it getting expanded. You should probably quote it anyway to prevent other problems like this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting FTP server as /backup replica88 Linux - Security 2 01-27-2010 09:51 AM
In plesk , I wish to have a backup cron job, ftp back up file to another ftp server? muskiediver Linux - General 6 07-16-2009 03:13 AM
backup server ; network file system / ftp-server ? markus1982 Linux - Security 5 06-06-2007 05:15 PM
LXer: Backup MySQL databases, web server files to a FTP server automatically LXer Syndicated Linux News 0 08-11-2006 09:54 PM
Mounting windows server onto SuSE backup server murungu Linux - General 1 09-20-2004 03:01 PM


All times are GMT -5. The time now is 01:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration