LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ftp - trouble uploading files (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-trouble-uploading-files-175691/)

icehenge 04-28-2004 05:49 PM

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>

marghorp 04-28-2004 07:26 PM

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.

icehenge 04-28-2004 09:24 PM

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!!! :(:p
I'm sure its something very simple ... at least i hope

marghorp 04-28-2004 09:42 PM

maybe mput thumbs/*.png

icehenge 04-29-2004 03:54 PM

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>


:(


All times are GMT -5. The time now is 09:15 PM.