Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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>
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...
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.
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...
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 .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.