1826519 Members
3992 Online
109695 Solutions
New Discussion

vsftp

 
STL
Occasional Advisor

vsftp

i install and configure vsftp. it's work!
vsftp write on /var/log/vsftpd.log.
how i close the vsftpd.log?
5 REPLIES 5
Vitaly Karasik_1
Honored Contributor

Re: vsftp

Yuo should comment out
xferlog_file=/var/log/vsftp.log

in /etc/vsftpd/vsftpd.conf
Vipulinux
Respected Contributor

Re: vsftp

Hi

why do you want to disable logging?

Its good to have logging enabled. are u worried about disk usage that logging uses. Try configuring log rotate.

Cheers
STL
Occasional Advisor

Re: vsftp

i don't disable loggin, but close file log and open a new file log.
log rotate? please can you give me information about use log rotate?
Vitaly Karasik_1
Honored Contributor

Re: vsftp

> close file log and open a new file log
what do you mean?

>logrotate
most modern linux ditsros include logrotate system, which automatically rotate/archive/remove old logs.
Read this article for start: http://www.linux.com/article.pl?sid=05/09/23/1447200
Vipulinux
Respected Contributor

Re: vsftp

Hi

Both of your ques has 1 answer and that is use log rotate.
Log rotate will zip and move a file once it reaches a particular size ( eg 2Mb)
and it will continue the process "n" no. of time. so if u have log rotate rotation value set as 5 you will have the following files:

vsftpd.log
vsftpd.log.0
vsftpd.log.1
vsftpd.log.2
vsftpd.log.3

For how to configure log rotate use:
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch05_:_Troubleshooting_Linux_with_syslog#Logrotate

Cheers
Vipul