LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2004, 05:49 PM   #1
icehenge
Member
 
Registered: Jan 2004
Location: Tennessee
Distribution: Slackware 8.1 (KDE 3.0.1)
Posts: 69

Rep: Reputation: 15
ftp - trouble uploading files


I should be able to figure this out, its so simple.
I've had no trouble upload files to this FTP before, but
now nothing is working.

It doesn't seem to be a permission problem.
Here is what i'm seeing.


-----------------------------------------------------------------
user bill logged in.
Remote system type is UNIX.
Using binary mode to transfer files.


bash-2.05a$ ls -l /home/bill/Desktop/cable
total 436
-rw-r--r-- 1 bill users 135317 Apr 27 22:48 battery-cable-orginal-1.jpg
-rw-r--r-- 1 bill users 135526 Apr 27 22:48 battery-cable-orginal-2.jpg
-rw-r--r-- 1 bill users 140958 Apr 27 22:48 battery-cable-orginal-3.jpg
-rw-r--r-- 1 bill users 1404 Apr 28 16:22 images.html
-rw-r--r-- 1 bill users 2 Jul 14 2000 test
drwxr-xr-x 2 bill users 4096 Apr 28 16:22 thumbs
bash-2.05a$

226 Quotas on: using 21237591 of 26214400 bytes
ftp> put /home/bill/Desktop/cable/*.jpg
local: /home/bill/Desktop/cable/battery-cable-orginal-1.jpg remote: /home/bill/Desktop/cable/battery-cable-orginal-1.jpg
200 PORT command successful.
550 /home/bill/Desktop/cable/battery-cable-orginal-1.jpg: No such file or directory
ftp> put /home/bill/Desktop/cable/*
local: /home/bill/Desktop/cable/battery-cable-orginal-1.jpg remote: /home/bill/Desktop/cable/battery-cable-orginal-1.jpg
200 PORT command successful.
550 /home/bill/Desktop/cable/battery-cable-orginal-1.jpg: No such file or directory
ftp> put /home/bill/Desktop/cable/*.*
local: /home/bill/Desktop/cable/battery-cable-orginal-1.jpg remote: /home/bill/Desktop/cable/battery-cable-orginal-1.jpg
200 PORT command successful.
550 /home/bill/Desktop/cable/battery-cable-orginal-1.jpg: No such file or directory


ftp> mput /home/bill/Desktop/cable/*.*
mput /home/bill/Desktop/cable/battery-cable-orginal-1.jpg? y
200 PORT command successful.
550 /home/bill/Desktop/cable/battery-cable-orginal-1.jpg: No such file or directory
mput /home/bill/Desktop/cable/battery-cable-orginal-2.jpg? yes
200 PORT command successful.
550 /home/bill/Desktop/cable/battery-cable-orginal-2.jpg: No such file or directory
mput /home/bill/Desktop/cable/battery-cable-orginal-3.jpg? yes
200 PORT command successful.
550 /home/bill/Desktop/cable/battery-cable-orginal-3.jpg: No such file or directory
mput /home/bill/Desktop/cable/images.html? yes
200 PORT command successful.
550 /home/bill/Desktop/cable/images.html: No such file or directory



ftp> mput /home/bill/Desktop/cable/battery-cable-orginal-3.jpg
mput /home/bill/Desktop/cable/battery-cable-orginal-3.jpg? y
200 PORT command successful.
550 /home/bill/Desktop/cable/battery-cable-orginal-3.jpg: No such file or directory
ftp>


*** Now with PUT

ftp> put /home/bill/Desktop/cable/test
/home/bill/Desktop/cable/test: No such file or directory
ftp> put test
local: test: No such file or directory
ftp> put ./test
local: ./test: No such file or directory
ftp>

ftp> put /home/bill/notes
/home/bill/notes: No such file or directory
ftp>
 
Old 04-28-2004, 07:26 PM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
What I'm seeing is that either you don't have /home/bill directory or you are using chroot for users connecting to FTP.

Maybe you deleted the user bill from your accounts, or account has expired

Check that out.

Another thing that might be causing the problem is that you chroot at connecting to FTP

Try to cd to the directory

cd /home
cd bill

if that gets you anywhere

if not, see if you are already in /home/bill (chrooted) and work from there.
 
Old 04-28-2004, 09:24 PM   #3
icehenge
Member
 
Registered: Jan 2004
Location: Tennessee
Distribution: Slackware 8.1 (KDE 3.0.1)
Posts: 69

Original Poster
Rep: Reputation: 15
marghorp,
Thanks for the help. If I start ftp while i'm in /home/bill/Desktop/cable then ftp
will think the local root is that location. Good suggestion as I can upload then
Just fine but some of the other files are in /home/bill/Desktop/cable/thumbs
and it still gets confused. I copied the output below.
(Also Desktop does have an uppercase on the D)

The user bill is actual me so he exist as its my home dir.
I've just changed my real name out and replaced it with
bill.

I might also mention the ftp i'm connecting to is my ISP.
upload.comcast.net



----------
ftp> mput *.jpg
mput battery-cable-orginal-1.jpg? y
200 PORT command successful.
150 Opening BINARY mode data connection for battery-cable-orginal-1.jpg.
226 Transfer complete.
135317 bytes sent in 2.36 secs (56 Kbytes/sec)
mput battery-cable-orginal-2.jpg? y
200 PORT command successful.
150 Opening BINARY mode data connection for battery-cable-orginal-2.jpg.
226 Transfer complete.
135526 bytes sent in 2.28 secs (58 Kbytes/sec)
mput battery-cable-orginal-3.jpg? y
200 PORT command successful.
150 Opening BINARY mode data connection for battery-cable-orginal-3.jpg.
226 Transfer complete.
140958 bytes sent in 2.37 secs (58 Kbytes/sec)

ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
-rw-r--r-- 1 pwpuser pwpuser 135317 Apr 29 02:05 battery-cable-orginal-1.jpg
-rw-r--r-- 1 pwpuser pwpuser 135526 Apr 29 02:05 battery-cable-orginal-2.jpg
-rw-r--r-- 1 pwpuser pwpuser 140958 Apr 29 02:05 battery-cable-orginal-3.jpg
226-Transfer complete.
226 Quotas on: using 18883862 of 26214400 bytes

ftp> mput /thumbs/*.jpg
Bad directory components

ftp> mput ./thumbs/*
mput ./thumbs/battery-cable-orginal-1.png? y
200 PORT command successful.
550-The path or filename you have entered contains forbidden characters.
550-A filename may contain only alphabetic letters in capitals (A-Z) or lower
550-case (a-z) and the numbers 0-9. The symbols dash (-), underscore (_) and
550-dot (.) may also be used. A filename may NOT start with a dot or dash.
550 ./thumbs/battery-cable-orginal-1.png: Forbidden filename
mput ./thumbs/battery-cable-orginal-2.png? n
mput ./thumbs/battery-cable-orginal-3.png? n

ftp> mput /thumbs/*
Bad directory components

ftp> mput /thumbs/*.png
Bad directory components

Ahh!!!
I'm sure its something very simple ... at least i hope
 
Old 04-28-2004, 09:42 PM   #4
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
maybe mput thumbs/*.png
 
Old 04-29-2004, 03:54 PM   #5
icehenge
Member
 
Registered: Jan 2004
Location: Tennessee
Distribution: Slackware 8.1 (KDE 3.0.1)
Posts: 69

Original Poster
Rep: Reputation: 15
ftp> mput thumbs/*.png
mput thumbs/battery-cable-orginal-1.png? y
200 PORT command successful.
550 thumbs/battery-cable-orginal-1.png: No such file or directory
mput thumbs/battery-cable-orginal-2.png? y
200 PORT command successful.
550 thumbs/battery-cable-orginal-2.png: No such file or directory
mput thumbs/battery-cable-orginal-3.png? n
ftp>


 
  


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
ftp problem with uploading big files joeSVK Linux - Networking 2 05-10-2005 03:52 AM
Apache: uploading new webpages using ftp nostradamus Linux - Networking 2 04-24-2004 01:56 PM
FTP Uploading Problem Ned Linux - Networking 0 05-09-2003 02:22 PM
Havin trouble allowing FTP users to access files and directories bripage Linux - Networking 9 04-15-2002 03:54 PM
FTP uploading... Thymox Linux - Networking 4 02-05-2002 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:21 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