LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-23-2013, 04:59 AM   #1
alieblice
Member
 
Registered: Jul 2011
Posts: 80

Rep: Reputation: Disabled
ftp error "553 Could not create file."


Hi
i got problem with my ftp server(vsftpd). when i use `mput` or `put` command if i don't specify file name to be save i get this error "553 Could not create file." .
i mean it doesn't use original file name automatically to save file on remote system.

I did some search and find ntrans and nmap in man page of ftp command (i use ubuntu 12.04). but using them didn't work .maybe i use them in wrong way.


Code:
ftp> put /home/aliali/Desktop/FTP/2.jpg 
local: /home/aliali/Desktop/FTP/2.jpg remote: /home/aliali/Desktop/FTP/2.jpg
227 Entering Passive Mode (172,16,134,131,24,92).
553 Could not create file.
ftp>
 
Old 01-23-2013, 11:00 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
You may not have write permissions (as this user or otherwise) on the remote system...

Either change the ownership of the folder or change the permissions....
If it is your account in the remote system, and you made the destination folder as someone else (Root for example) there may not be any write permissions for the proper user (you...)

By the way, it's poor practice (IMHO) to write from and/or to a desktop folder...

Thor
 
Old 01-24-2013, 01:05 AM   #3
alieblice
Member
 
Registered: Jul 2011
Posts: 80

Original Poster
Rep: Reputation: Disabled
thanks for reply.

I have write permission. i can upload by filezilla without any problem and if i give it a name it could save the file but when i don't give it a name it cant save file.
problem is that it's not using original file name to save the file.
 
Old 01-24-2013, 07:09 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
It is possible that the file already exists, and won't overwrite it.
 
Old 01-24-2013, 07:53 AM   #5
alieblice
Member
 
Registered: Jul 2011
Posts: 80

Original Poster
Rep: Reputation: Disabled
no the file doesn't exist.
i will re install it to see what happen . with new fresh config file.
 
Old 01-25-2013, 10:14 AM   #6
alieblice
Member
 
Registered: Jul 2011
Posts: 80

Original Poster
Rep: Reputation: Disabled
Hi every body

I installed vsftp on different system and this problem exist yet . so now I'm sure that theres something wrong with ftp command.
 
Old 01-25-2013, 10:52 AM   #7
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
I installed vsftp on different system and this problem exist yet . so now I'm sure that theres something wrong with ftp command.
Okay, that's usefull info. Let's have a look at the config file, shall we? Did you chroot the user (trap the user in his/her own folder)? There is a user made on the local server, I assume? If that user needs to get "out" of that folder, "bind" the destination like so:

Quote:
cd /home/user
mkdir somefolder
mount –bind /var/www/html/webfiles somefolder
Using a simlink to a folder does'nt work with VSFTPD, you'll have to use the method above...

Following this with heightened interest...

Thor
 
Old 01-25-2013, 01:09 PM   #8
alieblice
Member
 
Registered: Jul 2011
Posts: 80

Original Poster
Rep: Reputation: Disabled
sorry every body. it's looks like that it was my mistake in using command but i got strange behavior in command addressing .

see this output :

Code:
ftp> pwd
257 "/home/alieblice/ftp"
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
226 Directory send OK.
ftp> !
aliali@lp:~/Desktop/FTP$ ls
123  2.jpg  robat  test.avi
aliali@lp:~/Desktop/FTP$ exit
exit
ftp> put robat 
local: robat remote: robat
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 Transfer complete.
10344320 bytes sent in 0.16 secs (63354.1 kB/s)
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rw-------    1 1000     1000     10344320 Jan 25 09:13 robat
226 Directory send OK.
ftp> delete robat
250 Delete operation successful.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
226 Directory send OK.
ftp> put /home/aliali/Desktop/FTP/
123       2.jpg     robat     test.avi  
ftp> put /home/aliali/Desktop/FTP/robat
local: /home/aliali/Desktop/FTP/robat remote: /home/aliali/Desktop/FTP/robat
200 PORT command successful. Consider using PASV.
553 Could not create file.
ftp>

when i use this command to send a file it's successfully transfer :
Code:
ftp> put robat 
local: robat remote: robat
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 Transfer complete.
10344320 bytes sent in 0.16 secs (63354.1 kB/s)
but when i use this command it fails :
Code:
ftp> put /home/aliali/Desktop/FTP/robat
local: /home/aliali/Desktop/FTP/robat remote: /home/aliali/Desktop/FTP/robat
200 PORT command successful. Consider using PASV.
553 Could not create file.
its simple user on system without any chroot and its local user not virtual or something .

Last edited by alieblice; 01-25-2013 at 01:11 PM.
 
Old 01-26-2013, 03:50 AM   #9
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
its simple user on system without any chroot and its local user not virtual or something
Thanks for posting this...I'm sure it'll be used as a solution in the future...
If I read corerctly:

Quote:
local: /home/aliali/Desktop/FTP/robat remote: /home/aliali/Desktop/FTP/robat
FTP assumes there is a folder /home/aliali/Desktop/FTP/robat at the other end, and...threre's not...

Thanks for this contribution!

Thor
 
  


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
vsftpd & "553 could not create file" steffentchr Linux - Server 8 06-28-2012 01:52 PM
FTP '553 Could not create file' error Nasser Domingo Linux - Newbie 2 08-02-2010 07:04 AM
gftp returns "553 Could not create file." bezdomny Linux - Software 4 08-28-2007 09:15 AM
ftp: 553 Could not create file. lothario Linux - Software 4 10-21-2006 06:56 AM
sendmail error 553 5.1.8 error "domain doesnot exist" kevinm2 Linux - Newbie 8 09-16-2004 12:39 AM

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

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