LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-13-2006, 03:47 PM   #1
xrender
LQ Newbie
 
Registered: May 2006
Posts: 15

Rep: Reputation: 0
FTP: vsftpd 451 Failure writing to local file


I had vsftpd running on a fedora 4 server. Users had access to ther home dirs. All the files got 755 upon uploading. I cannot understand what happened - now when I try to upload a file, it is created but of zero size.
I can see all the dirs on the server, I can delete files, change permissions but I cannot upload with an ftp client.
When I try to change any file on the server even with permissions 777 it transforms to an empty one.
And I see in the log:
150 Ok to send data.
451 Failure writing to local file.
ERROR:> Temporary completion problem reply.


I tried to reinstall vsftpd but got the same. When I use ssh access - no problems. FTP client works normally with another account.

Does somebody know how to fix that?

Last edited by xrender; 07-13-2006 at 03:52 PM.
 
Old 07-13-2006, 04:45 PM   #2
xrender
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
I found the reason.

$df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 76773444 72816084 0 100% /
/dev/hda1 101086 16327 79540 18% /boot
/dev/shm 501628 0 501628 0% /dev/shm


But that is crazy!
I do not have so much stuff.
I see now when I am using midnight commander: 3945M (5%) of 73G
what does all that mean?
how to understand what consumed so much space?
How to determine amount of space occupied by some directory?
$df /abc_dir does not work..
I am not familiar with linux - please help!

Last edited by xrender; 07-13-2006 at 05:15 PM.
 
Old 07-13-2006, 06:06 PM   #3
xrender
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
finally, du returned what I was looking for..
67 G of error_log

By the way, how can one return sizes of all files and dirs (not subs) in a certain directory (say, /var) ? I guess, with du and some flags, if such a trick is possible at all?
 
Old 07-13-2006, 07:11 PM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
'du -sk *' is your friend here. This will return sizes of directories and files in the current directory. If you have pages of files/dirs, you can just pipe 'sort' to display the dirs/files that are the biggest in size.

-twantrd
 
Old 07-14-2006, 04:33 AM   #5
xrender
LQ Newbie
 
Registered: May 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks.
du -s * | sort –gr
is perfect

Last edited by xrender; 07-14-2006 at 04:35 AM.
 
  


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
anonymous folder writing with vsftpd thomas.jt Linux - Networking 3 10-31-2005 08:18 PM
vsftpd 2.0.3 ftp authentication failing for local user scooger Linux - Software 1 05-17-2005 10:48 AM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM
vsftpd isn't writing standard ftpd log looney Linux - Software 0 08-13-2004 01:47 PM
File execution on ftp (vsftpd) rkemp General 1 03-13-2004 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:28 PM.

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