LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2010, 12:37 PM   #1
mwkemo
Member
 
Registered: May 2009
Location: Croatia
Distribution: Debian
Posts: 31

Rep: Reputation: 16
FTP script not working with pure-FTPd


Code:
#!/bin/sh
HOST='host.com'
USER='yourid'
PASSWD='yourpw'
FILE='file.txt'

ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE
quit
END_SCRIPT
exit 0
The username is recognized by the pure-FTPd but password is not.

This script connects to FTP server and uploads some file. This is a working script for all FTP servers that I have tried except pure-FTPd. And pure-FTPd is running on my website hosting server. I don't believe they are willing to change there FTP server so I'm looking for help.

Thanks
 
Old 09-05-2010, 04:20 PM   #2
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 34
Did you try to wrap password with ` or only in the beginning. I have seen that somewhere.
 
  


Reply



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
Connection from FTP client to PURE FTPd server fails at MLSD james8734 Linux - Networking 3 05-18-2010 04:21 PM
LXer: Virtual Mail And FTP Hosting With iRedMail And Pure-FTPd LXer Syndicated Linux News 0 07-20-2009 04:51 PM
/etc/shells Pure-ftpd what is the users? Unable to log on ftp.. almost000 Linux - Newbie 5 05-02-2007 01:23 PM
Forward to another ftp-server with pure-ftpd didi86 Linux - Software 0 12-20-2004 12:55 PM
Set up ftp server with pure-ftpd aeruzcar Linux - Software 7 04-15-2004 07:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration