LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-03-2006, 10:02 PM   #1
dqquyen2003
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
Don't know why upload file fail in vsftpd ?


Hi All,

I've just install the vsftpd server in FC4 which have a user named "pl", After connecting successfully to the vsftpd server with this user, I start to upload file test.txt to the home directory of this user(/home/pl) but it display this error :

ftp> pwd
257 "/home/pl"
ftp> put test.txt
200 PORT command successful. Consider using PASV
553 Could not create file


What wrong with my configuration, what should i do to fix it ?

Thanks,
Ken
 
Old 03-04-2006, 10:01 AM   #2
fuzzyash
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Fedora Core 4
Posts: 184

Rep: Reputation: 30
This sounds like it should be a simple fix, but first I need more info.

For starters, try using a FTP prog with a GUI, gFTP is my favourite. It comes with most Linux distros & was probably installed by default when you installed FC4. Simply type gftp in a terminal or click it from the apps menu, you can find it under the "Internet" header. Using this GUI is a much easier way to connect to a FTP server & it will provide you with all the lines of text that your server & client use to communicate with one another. This info will help me figure out exactly what your server & client are trying to say to each other so I can help you resolve this problem.

After typing the above I thought I would have a quick look at what the error code actually means! (probably should have done this first! Oh well) The error code you are experiencing :
Code:
553 Could not create file
means, & I quote :
Code:
553 Requested action not taken. File name not allowed.
I acquired the error codes from http://www.safenet.no/article/articleview/203/1/17/ if you would like to have a look for yourself.

But I don't understand why it would not let you use such a simple filename as "test.txt", but to be sure, try changing the filename to just "test", without the ".txt" part & try again. I don't really think this will work but it's worth a try.

Getting back to what I was saying above, if you could post all the output from a gFTP session then I will be able to assist you further. gFTP is very simple to use but if you need a basic tutorial then check out http://www.netfaqs.com/linux/FTP/GFTP/index.asp?bisp=

Also, whenever you ask a question about the configuration of one of your apps you should always include all the config files related to that app in your initial post, you'll find you get the answer your looking for much quicker.

So, please post your vsftpd config file :
Code:
/etc/vsftpd/vsftpd.conf
& any other config files you might have edited / created when you first set it up, these might include :
Code:
/etc/vsftpd.user_list
/etc/vsftpd.ftpusers
/etc/vsftpd.chroot_list
At least then I will know what you've done.

Get back to me with your results.
 
Old 03-05-2006, 10:21 AM   #3
dqquyen2003
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Hi fuzzyash,

Thanks for your reply, I've found out the reason that I can't upload file. The main reason is that I turned on the SELinux protection for vsftpd. Therefore when I disabled this protection, I could upload file successfully.

Thanks,
Ken
 
  


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
on upload command with vsftpd DRagonRage Linux - Networking 6 10-08-2005 01:15 PM
vsftpd problems: cannot upload ricky_ds Linux - Software 1 08-22-2005 03:37 AM
vsftpd upload limit juergenH Linux - Networking 1 11-17-2003 04:58 AM
VSFTPD - can download but cant upload. Dirt Linux - Software 1 09-06-2003 08:42 PM
Anonymous upload with vsftpd 1.1.0 Jesus0190 Linux - Software 0 01-04-2003 05:40 PM

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

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